Re: [Matplotlib-users] Polar plot - problem with negative values for radius

2011-02-21 Thread Stephan Markus
I am using a workaround now. But that is a hackery solution. Before plotting my data I convert it to dBs and limit it to the lowest value I want to display. Then I plot it using a regular polar plot with a custom formatting function that sets the tick labels with respect to the data offset.

Re: [Matplotlib-users] griddata question

2011-02-21 Thread Pauli Virtanen
Fri, 18 Feb 2011 20:24:31 +0100, Nils Wagner wrote: what is the reason for the white areas in the corners of the interpolation domain? Any idea ? Griddata does not do any extrapolation, and the corners are outside the convex hull of the point set. import numpy as np from scipy.interpolate

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Benjamin Root
On Mon, Feb 21, 2011 at 10:07 AM, Waléria Antunes David waleriantu...@gmail.com wrote: Hello all, I have this graph but the scale is wrong. See my images. In the image my_graph the xscale an yscale is wrong. I need to let the scale of x and y my_graph as correct_graph. Can you help me??

Re: [Matplotlib-users] small patch to enable formatters for contour line labels

2011-02-21 Thread Daniel Hyams
Thanks Eric! On Sun, Feb 20, 2011 at 9:02 PM, Eric Firing efir...@hawaii.edu wrote: On 02/20/2011 06:17 AM, Daniel Hyams wrote: The function clabel does not allow the use of formatters for the label; this small patch enables their use, so that one can pass in any subclass of ticker.Formatter

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Benjamin Root
On Mon, Feb 21, 2011 at 10:23 AM, Waléria Antunes David waleriantu...@gmail.com wrote: See my code: http://pastebin.com/xtgKteuW I need that tn the x-axis should have a scale like this: 0 - 2 - 4 - 6 - 8 - 10 - 12 - 14 and in the y-axis a scale: 1 - 10 - 100 -1000 . See my images, the image

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
So...now my xscale is correct but the yscale ...i need that in the yscale should have a scale like this: 1 - 10 - 100 - 1000 ... without using power rating . Can you help me?? See my image attached.. Thanks, On Mon, Feb 21, 2011 at 1:32 PM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 57, Issue 60

2011-02-21 Thread Waléria Antunes David
I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you help me, please. Thanks, On Mon, Feb 21, 2011 at 1:51 PM, matplotlib-users-requ...@lists.sourceforge.net wrote: Send Matplotlib-users mailing list submissions to matplotlib-users@lists.sourceforge.net To

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you help me, please. Thanks, On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David waleriantu...@gmail.com wrote: So...now my xscale is correct but the yscale ...i need that in the yscale should have a scale like this:

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Benjamin Root
On Mon, Feb 21, 2011 at 12:24 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you help me, please. Thanks, On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David waleriantu...@gmail.com wrote: So...now my

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
I don't know how to do this. Can you help me? On Mon, Feb 21, 2011 at 3:32 PM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 21, 2011 at 12:24 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you help me,

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Benjamin Root
On Mon, Feb 21, 2011 at 12:37 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I don't know how to do this. Can you help me? In your case, I would do something like this: import matplotlib.ticker as mtick # Other code here # Now getting ready to plot fig = plt.figure() ax =

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Benjamin Root
On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I did what you sai but the yscale was: 0, 0, 0, 0, 0, 0, 0, 1, 100 . Would be the correct way: 1, 10, 100, 1000. See the wrong image attached. And the correct image - correct_graph attached. Thanks,

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
I don't understand...i need that the yscale has these values: 1,10,100,1000 But i don't know how... Thanks, On Mon, Feb 21, 2011 at 3:58 PM, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I did what you sai

[Matplotlib-users] bug in fill_between?

2011-02-21 Thread John
Hello, I'm trying to use fill_between in the following script: [code] #!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import pdb from jfb import readcsv #D = np.loadtxt('lat_sectors.csv',skiprows=1,delimiter=',') head,D =

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Waléria Antunes David
Can you help me...please. On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I don't understand...i need that the yscale has these values: 1,10,100,1000 But i don't know how... Thanks, On Mon, Feb 21, 2011 at 3:58 PM, Benjamin Root ben.r...@ou.edu

Re: [Matplotlib-users] xscale and yscale

2011-02-21 Thread Benjamin Root
On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David waleriantu...@gmail.com wrote: Can you help me...please. On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David waleriantu...@gmail.com wrote: I don't understand...i need that the yscale has these values: 1,10,100,1000 But i

[Matplotlib-users] Line2D: drawstyle + pick_event

2011-02-21 Thread James Kitchen
'pick_event' fires when I pick on either the marker or the line segment of a Line2D object. But if I change the drawstyle to use steps (steps-pre, steps-post, steps-mid), picking on the line segment is broken. It still seems to think the line is linear. This leads to very strange behavior

Re: [Matplotlib-users] Setting the ticks on an axis

2011-02-21 Thread Goyo
2011/2/20 Curiouslearn curiousle...@gmail.com: Thomas and Goyo, Thanks for the answers. I am fine with them being coverted to ints. In fact, my ax.set_ylim(bottom=0, top=6000) contains ints and I don't understand why they are converted to floats. I was thinking that there is perhaps another

[Matplotlib-users] using contourf to plot masked array

2011-02-21 Thread Zhaoru Zhang
Hi, I tried to use contourf to plot an array in which the land values have been masked. However, I found that contourf did not deal with the masking properly. I would expect the masked region to be bounded by the separation line of land and sea, but it actually exceeds that line. I also