
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

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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Matt, Ah great, I didn't see the clumps callback there and that's why I wanted to use the PlotCollection! 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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Shanavar, It looks like the clump callback hasn't been converted to be compatible with the plot window. Thanks for pointing this out, I will fix this ASAP. -Nathan On 11/8/12 10:23 AM, Patrick Rieser wrote:
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Patrick, The clump callback should be fixed now. I think the title callback never worked for PlotCollection (someone else can correct me if that's not the case). The title is actually being drawn, but it's done off of the figure so it doesn't show up in the final image. The title callback does work for plot window plots. Please let us know if you have any further issues. -Nathan On 11/8/12 10:23 AM, Patrick Rieser wrote:
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Nathan, Yeah, it seems as if the title is drawn off of the figure but the region that is shown is not expended. Thanks a million times for fixing the clump callback on plot window so fast! Best wishes, Patrick Am 08.11.2012 20:03, schrieb Nathan Goldbaum:
Hi Patrick,
The clump callback should be fixed now.
I think the title callback never worked for PlotCollection (someone else can correct me if that's not the case). The title is actually being drawn, but it's done off of the figure so it doesn't show up in the final image. The title callback does work for plot window plots.
Please let us know if you have any further issues.
-Nathan
On 11/8/12 10:23 AM, Patrick Rieser wrote:
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Matthew Turk
-
Nathan Goldbaum
-
Patrick Rieser