[yt-users] Title Callback in PlotCollection

Patrick Rieser patrick.rieser at uibk.ac.at
Thu Nov 8 07:23:12 PST 2012


Hi,

Sorry to write again, but I am not sure if I miss something but the 
resulting picture is quite messed up:

http://www.flickr.com/photos/87912862@N05/

I do it with
p = ProjectionPlot(pf, "x", "Density")
p.annotate_clumps(all_clumps)
p.save()

I am using the newest development version of yt.

Also is it possible to output directly to pdf with the plot window?


Thanks a lot & best wishes,
Patrick

Am 08.11.2012 15:56, schrieb Matthew Turk:
> Hi Patrick,
>
> Maybe someone else can help, but I will chime in to suggest you try
> using the plot window, which sets up the borders of the image slightly
> differently.
>
> p = SlicePlot(pf, "x", "Density")
> p.annotate_title("My Title")
> p.save()
>
> The plot modifications are all there, with the same API, but you call
> them by doing annotate_{modificationname} instead.
>
> Hope that helps, but perhaps someone else has an idea about the title callback.
>
> -Matt
>
> On Thu, Nov 8, 2012 at 9:32 AM, Patrick Rieser
> <patrick.rieser at uibk.ac.at> wrote:
>> Hey all!
>>
>> I got a problem when using the title callback in a plot collection. It seems
>> to restrict the plot only to the image and "cut off" the top, where the
>> title should be. When I use pc.plots[0].modify["title"]("sometitle") applied
>> and then saved with pc.save("somename") nothing appears on the top, but the
>> image remains as if I never applied anything.
>>
>> Here is an example (with the title callback applied, but it doesn't show
>> up):
>>
>> http://www.flickr.com/photos/87912862@N05/8166752608/in/photostream
>>
>> Best wishes,
>> Patrick
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org




More information about the yt-users mailing list