<div dir="ltr">Hi Reju,<div><br></div><div>'x_log' and 'y_log' aren't valid arguments to the PhasePlot.  To adjust the logscaling you need to call the set_log method that most plot objects share.  This method takes in a field name, or 'all', and then a True or False depending on whether you want the log turned on or off for that field.  So, in  your case, something like</div><div><br></div><div>plot = PhasePlot(my_sphere, "MachNumber", "CRFractionPreCR", "CellMassMsun", weight_field=None)</div><div>plot.set_log("MachNumber", True)</div><div>plot.set_log("CRFractionPreCR", True)</div><div><br></div><div>There are also methods for setting the x, y, and z range: set_xlim, set_ylim, and set_zlim, respectively.  </div><div><br></div><div>Chris</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 8:45 AM, Reju Sam John <span dir="ltr"><<a href="mailto:rejusamjohn@gmail.com" target="_blank">rejusamjohn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>I am trying to make a phase plot using YT 2.6, with the following line.</div><div><br></div><div> <font face="courier new, monospace"><b>plot = PhasePlot(my_sphere, "Density</b></font><b style="font-family:'courier new',monospace">", "</b><font face="courier new, monospace"><b>Temperature</b></font><b style="font-family:'courier new',monospace">","CellMassMsun",weight_field=None,x_log=1,y_log=1).save()</b></div><div><div><br></div><div>but it is giving me the following error.<br><div><i>plot = PhasePlot(my_sphere, "MachNumber", "CRFractionPreCR","CellMassMsun",weight_field=None,x_log=1,y_log=1).save()</i></div><div><i>TypeError: __init__() got an unexpected keyword argument 'x_log'</i></div></div><div><br></div><div>I also tried with x_log=True.Still the same error. What could be the problem? How to make both x and y  in log scale?</div><div><br></div><div>And also I would like to know is it possible to fix x and y range in phase plot?</div><div><br></div><div>Thank you.</div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr">Reju Sam John</div></div>
</font></span></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>