On 2015/02/21 5:32 PM, Starfighter wrote:
> Per request my question is being resubmitted here.
>
> I'm attempting to generate contour and a color map in Matplotlib ver. 1.4.3
> on a MacBook Pro under Mac OS X ver. 10.10.2 in Python 2.7.3 with the
> Anaconda environment.
>
> A zip file has been attached to this note. Two sub-directories,
> mathplotlib_1.4.3 and mathplotlib_1.1.1rc are included.
>
> mathplotlib_1.4.3 contains the python script that generates the contour and
> color map plots, jpeg files showing the resultant plots and the input data.
>
> mathplotlib_1.1.1rc contains the screen snaps (jpeg files) showing the
> correct contour and color map plots generated by the same python script and
> input data under Linux2 using Python 2.7.3 and Matplotlib 1.1.1rc.
>
> The questions I have include:
>     1. What are the differences between Matplotlib vers. 1.1.1rc and 1.4.3?

Well, you just found one of them.  You should be able to find most 
substantial changes in http://matplotlib.org/users/whats_new.html.

>     2. What is going on where?

The plt.axis('scaled') call is freezing the xlim and ylim at values 
resulting from a call to "nonsingular", which is handling the fact that 
when you call axis(), nothing has been plotted and there is no 
information about what you want the limits to be.  In addition, 'scaled' 
is one of the axis options that turns off autoscaling.  It has always 
been intended to be called *after* plotting with autoscaling on, or 
otherwise setting the xlim and ylim to the desired values.  I don't know 
why it worked for you in 1.1.1rc; I think it was long before this that 
it had the behavior of turning off autoscaling, but I haven't checked.

>     3. How can I fix this problem?

Put the "plt.axis('scaled')" line after your pcolor or plot line.

As a side note, in general pcolormesh will yield the same result as 
pcolor, but *much* faster, so it is recommended in most cases.

Eric
>
>
> Please advise.
>
>
>
>
> mathplotlib_issues.zip
> <http://matplotlib.1069221.n5.nabble.com/file/n45004/mathplotlib_issues.zip>
>
>
>
> --
> View this message in context: 
> http://matplotlib.1069221.n5.nabble.com/Problems-with-pyplot-and-cm-in-Matplotlib-ver-1-4-3-tp45002p45004.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to