<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I'm trying to use eps_writer to create figure that has both projections and profiles as subplots, but every time I try to create one with profiles the program crashes with following stack trace:<br><br>Traceback (most recent call last):<br>  File "myprogram.py", line 14, in <module><br>    multiplot = eps.multiplot(cols, rows, plots)<br>  File "/.../yt-x86_64/src/yt-hg/yt/visualization/eps_writer.py", line 1120, in multiplot<br>    field=fields[index])<br>  File ".../yt-x86_64/src/yt-hg/yt/visualization/eps_writer.py", line 505, in insert_image_yt<br>    plot._redraw_image()<br>AttributeError: 'ProfilePlot' object has no attribute '_redraw_image'<br><br></div>Here is a minimal example of a program that produces that error: <a href="http://paste.yt-project.org/show/5617/">http://paste.yt-project.org/show/5617/</a>. One plot could of course be saved without eps_writer but if I want multiple plots to the same figure, I don't know any other way of doing it if some of them are profiles.<br><br></div>I took a look at the source code of eps_writer and it seems that it is intended to work with projections also because there are lines like line 504 which explicitly handles profiles: "elif isinstance(plot, ProfilePlot):". I was able to work my way around the error by getting the figure from the plot similarly to what is done in ProfilePlot source when the plot is saved: I create an iterator to iterate through plot.figures.iteritems() and get the figure to _p1. Unfortunately, then I get errors from similar calls to functions and attributes that don't exist, for example in code block starting from line 358, so I haven't been able to get profiles to work. Of course it is also possible that my workaround does not work correctly, because my understanding of yt source is not very comprehensive.<br><br></div>Am I doing something wrong with eps_writer or profile creation? Or has anyone else run into a similar problem and if so, how have you managed to get around it? Is there any other way to get both profiles and projections to same figure?<br><br><br></div>Thanks for your help<br><br></div>Anni Järvenpää<br></div>Summer Trainee<br></div>Division of Particle Physics and Astrophysics </div>University of Helsinki<br></div>