<div dir="ltr">Dear yt-users,<div><br></div><div>Hi, I want to annotate some lines on 1D profile plots, like on projection plots or slice plots. I looked through the yt documentation, and I found:</div><div><br></div><div><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px">Callbacks can be applied to plots created with </span><a class="gmail-reference gmail-internal" href="http://yt-project.org/doc/reference/api/yt.visualization.plot_window.html#yt.visualization.plot_window.SlicePlot" title="yt.visualization.plot_window.SlicePlot" style="box-sizing:border-box;background-color:transparent;color:rgb(69,130,236);text-decoration:none;font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"><code class="gmail-xref gmail-py gmail-py-class gmail-docutils gmail-literal" style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14.399999618530273px;padding:2px 4px;color:rgb(221,17,68);background-color:transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;font-weight:bold;white-space:nowrap"><span class="gmail-pre" style="box-sizing:border-box">SlicePlot</span></code></a><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px">, </span><a class="gmail-reference gmail-internal" href="http://yt-project.org/doc/reference/api/yt.visualization.plot_window.html#yt.visualization.plot_window.ProjectionPlot" title="yt.visualization.plot_window.ProjectionPlot" style="box-sizing:border-box;background-color:transparent;color:rgb(69,130,236);text-decoration:none;font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"><code class="gmail-xref gmail-py gmail-py-class gmail-docutils gmail-literal" style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14.399999618530273px;padding:2px 4px;color:rgb(221,17,68);background-color:transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;font-weight:bold;white-space:nowrap"><span class="gmail-pre" style="box-sizing:border-box">ProjectionPlot</span></code></a><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px">, </span><a class="gmail-reference gmail-internal" href="http://yt-project.org/doc/reference/api/yt.visualization.plot_window.html#yt.visualization.plot_window.OffAxisSlicePlot" title="yt.visualization.plot_window.OffAxisSlicePlot" style="box-sizing:border-box;background-color:transparent;color:rgb(69,130,236);text-decoration:none;font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"><code class="gmail-xref gmail-py gmail-py-class gmail-docutils gmail-literal" style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14.399999618530273px;padding:2px 4px;color:rgb(221,17,68);background-color:transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;font-weight:bold;white-space:nowrap"><span class="gmail-pre" style="box-sizing:border-box">OffAxisSlicePlot</span></code></a><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px">, or </span><a class="gmail-reference gmail-internal" href="http://yt-project.org/doc/reference/api/yt.visualization.plot_window.html#yt.visualization.plot_window.OffAxisProjectionPlot" title="yt.visualization.plot_window.OffAxisProjectionPlot" style="box-sizing:border-box;background-color:transparent;color:rgb(69,130,236);text-decoration:none;font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"><code class="gmail-xref gmail-py gmail-py-class gmail-docutils gmail-literal" style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14.399999618530273px;padding:2px 4px;color:rgb(221,17,68);background-color:transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;font-weight:bold;white-space:nowrap"><span class="gmail-pre" style="box-sizing:border-box">OffAxisProjectionPlot</span></code></a><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"> by calling one of the </span><code class="gmail-docutils gmail-literal" style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14.399999618530273px;padding:2px 4px;color:rgb(221,17,68);background-color:rgb(249,242,244);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;white-space:nowrap"><span class="gmail-pre" style="box-sizing:border-box">annotate_</span></code><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"> methods that hang off of the plot object.</span><br></div><div><span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"><br></span></div><div>on plot modification page, which means annotate_line method is not effective for profile plots (I actually tried this on profile plots, and it did not work). Is there any good way to annotate lines on 1D profile plots?<span style="color:rgb(51,51,51);font-family:Georgia,"Times New Roman",Times,serif;font-size:16px"><br></span></div><div>Also, I want to change the fontsize of numbers and labels on the axes of profileplots. How can I do this?</div><div>For example, I want to annotate vertical line on density=1e-25, and change the fontsize of "density", "10**-28", ..., "10**-21".</div><div><br></div><div>Thanks,</div><div>Y.T.</div><div><img src="cid:ii_15f6ecda24ebf61b" alt="埋め込み画像 1" width="426" height="341"></div></div>