[yt-users] colorbar in AxesGrid of yt slices

Morgan MacLeod morganmacleod at gmail.com
Tue Oct 14 08:10:02 PDT 2014


Chris -- success!  Thank you for the help!
Morgan

On Tue, Oct 14, 2014 at 10:54 AM, Chris Malone <chris.m.malone at gmail.com>
wrote:

> Hi Morgan,
>
> FWIW, I've found that some colormaps are prone to 'lines,' while others
> look fine.
>
> That said, I think you can access the colorbar itself from (using the
> linked example):
>
> p.plots['density'].cb
>
> Chris
>
> On Tue, Oct 14, 2014 at 9:20 AM, Morgan MacLeod <morganmacleod at gmail.com>
> wrote:
>
>> Hi all,
>>
>> I have a question related to saving multipanel figures generated with the
>> AxesGrid toolkit as ".eps".
>>
>> I've made a few plots in which I *very* closely follow this example:
>> http://yt-project.org/doc/cookbook/multiplot_2x2_time_series.py
>>
>> Except I replace the save line with
>> plt.savefig('my_figure.eps',format='eps')
>>
>> I am hoping to fix this issue (where the colorbar has thin lines in it):
>>
>> http://stackoverflow.com/questions/15003353/why-does-my-colorbar-have-lines-in-it
>> with a line like:
>>
>> cbar.solids.set_rasterized(True)
>>
>> I haven't been able to figure out, though, how to access the colorbar
>> object itself within the context of the AxesGrid. In the example script, we
>> access the colorbar axes, which is close, but not quite what is needed, I
>> think.
>>
>> Thank you in advance for the help,
>>
>> Morgan
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141014/73356990/attachment.htm>


More information about the yt-users mailing list