<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Nathan, <div class=""><br class=""></div><div class="">thanks a lot! It works perfectly. </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">Adding such a feature would be a reasonable thing to do as well as an easy first yt project if you're interested. If you're not interested, please feel free to file an issue with the feature request:</div><div class=""><br class=""></div><div class=""><a href="https://bitbucket.org/yt_analysis/yt/issues/new" class="">https://bitbucket.org/yt_analysis/yt/issues/new</a></div></div></div></div></blockquote><div class=""><br class=""></div>I am happy to contribute at some point in the future. Currently, other things keep me busy. However, I am going to file an issue so that you have it on the record.</div><div class=""><br class=""></div><div class="">Regards, </div><div class=""><br class=""></div><div class="">Katharina</div><div class=""> <br class=""><div><blockquote type="cite" class=""><div class="">On 12.11.2016, at 17:36, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><br class="Apple-interchange-newline"><br class=""><div class="gmail_quote">On Sat, Nov 12, 2016 at 9:37 AM, Katharina Wollenberg<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:k.wollenberg@stud.uni-heidelberg.de" target="_blank" class="">k.wollenberg@stud.uni-heidelberg.de</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;" class="">Hi together, <div class=""><br class=""></div><div class="">I would like to relabel the y-axis of a profile plot. </div><div class="">I tried the “set_ylabel”-command but got the error message that ProfilePlot does not have this attribute. I also could not find an answer when skimming through the yt Cookbook. </div></div></blockquote><div class=""><br class=""></div><div class="">Hi Katharina,</div><div class=""><br class=""></div><div class="">You're right that ProfilePlot currently doesn't have an "easy" way to set the plot axes labels. Adding such a feature would be a reasonable thing to do as well as an easy first yt project if you're interested. If you're not interested, please feel free to file an issue with the feature request:</div><div class=""><br class=""></div><div class=""><a href="https://bitbucket.org/yt_analysis/yt/issues/new" class="">https://bitbucket.org/yt_analysis/yt/issues/new</a><br class=""></div><div class=""><br class=""></div><div class="">As a workaround, you can access the matplotlib axes object and customize the plot from there using that interface. Here is a snippet that illustrates how to do this:</div><div class=""><br class=""></div><div class="">    plot = yt.ProfilePlot(ds.all_data(), ('gas', 'density'), ('gas', 'temperature'))</div><div class="">    ax = plot.axes[('gas', 'temperature')]</div><div class="">    ax.set_ylabel('my ylabel')</div><div class="">    plot.save()</div><div class=""><br class=""></div><div class="">Note that the keys of the plot.axes dictionary are the full field tuples, not the field name of the field plotted along the y axis. It's a dictionary because you are allowed to pass more than one y field to ProfilePlot, which will make more than one plot. You might take a look at plot.axes.keys() to see what I mean.</div><div class=""><br class=""></div><div class="">Hope that helps,</div><div class=""><br class=""></div><div class="">Nathan</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><div class=""><br class=""></div><div class="">Can anyone help me with that?</div><div class="">Thanks in advance!</div><div class=""><br class=""></div><div class="">Regards, </div><div class=""><br class=""></div><div class="">Katharina<br class=""><div class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div class="">------------------------------<wbr class="">-------------------------</div><div class="">Katharina Wollenberg</div><div class="">PhD Student in Astronomy</div><div class=""><br class=""></div><div class="">Zentrum für Astronomie der Universität Heidelberg (ZAH)</div><div class="">Institute of Theoretical Astrophysics (ITA)</div><div class="">Albert-Ueberle-Str. 2</div><div class="">69120 Heidelberg</div><div class="">Germany</div><div class=""><br class=""></div></div><br class="gmail-m_3282439374785104115Apple-interchange-newline"></div><br class="gmail-m_3282439374785104115Apple-interchange-newline"><br class="gmail-m_3282439374785104115Apple-interchange-newline"></div><br class=""></div></div><br class="">______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/<wbr class="">listinfo.cgi/yt-users-<wbr class="">spacepope.org</a><br class=""><br class=""></blockquote></div><br class=""></div></div><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">yt-users mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:yt-users@lists.spacepope.org" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">yt-users@lists.spacepope.org</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div></blockquote></div><br class=""></div></body></html>