Re: [Matplotlib-users] basemap day and night

2009-08-24 Thread Arto Oksanen
Thanks Jeff! That is just a perfect solution!! arto 2009/8/24 Jeff Whitaker > Arto Oksanen wrote: > >> Thanks for your prompt reply. I should have given a more detailed >> explanation. I do know the solar position and then the latitude and >> longitude of the point on globe where the Sun is on

[Matplotlib-users] showing current value on boxplot

2009-08-24 Thread Ravi A.
Hi, I am new to matplotlib. I am using boxplot and i wanted to mark current value or any special value on the box plot. How do i achieve this? Something like below. Thanks in advance, --- [---X--]- --[-]---X--- -- View this message in context: http://www.nabb

Re: [Matplotlib-users] Cursor position

2009-08-24 Thread Thomas Robitaille
> I think the easiest solution is to override the Axes.format_coord. > For example, > > ax = gca() > ax.format_coord = lambda x,y : "x=%g y=%g" % (x, y) > > x,y are in data coordinate. I'm not sure if there is any side effect, > but it seems that the format_coord method is only used to display

Re: [Matplotlib-users] Three-Phase-Diagrams with matplotlib

2009-08-24 Thread M. Hecht
Thank you, this was exacly what I was looking for. No I try to understand this ;-) -- View this message in context: http://www.nabble.com/Three-Phase-Diagrams-with-matplotlib-tp25122001p25123043.html Sent from the matplotlib - users mailing list archive at Nabble.com. --

Re: [Matplotlib-users] Three-Phase-Diagrams with matplotlib

2009-08-24 Thread Chloe Lewis
If your percents always sum to 100, you can use a subclass of Figure I made up for soil science; pictures at http://nature.berkeley.edu/~chlewis/Projects/Entries/2009/6/25_A_function_to_plot_information_on_the_soil_texture_triangle.html (non-soil example at end) and code at http://nature.berk

Re: [Matplotlib-users] display pixels values on the backends

2009-08-24 Thread Jae-Joon Lee
On Mon, Aug 24, 2009 at 1:48 PM, Xavier Gnata wrote: > Hi, > > I have already asked about that but I'm back once again :) > > The way I use matplotlib may be a corner case: > I'm often looking at large (4k x 4k) images and I do want to see the > pixels values moving the mouse over the display. > im

[Matplotlib-users] Three-Phase-Diagrams with matplotlib

2009-08-24 Thread M. Hecht
Hello, does anyone know whether it is possible to draw three-phase-diagrams with matplotlib? A three-phase-diagram is a triangular diagram applied in chemistry e.g. for slags where one has three main components of a chemical substance at the corners and points or lines within the triangle markin

Re: [Matplotlib-users] Cursor position

2009-08-24 Thread Jae-Joon Lee
On Mon, Aug 24, 2009 at 1:14 PM, Thomas Robitaille wrote: > > Hi, > > I'm interested in controlling how the cursor position appears at the bottom > of interactive windows. > > I noticed that by default, it is the Formatter that gets called. However, in > my case, the displayed coordinates each depe

Re: [Matplotlib-users] basemap day and night

2009-08-24 Thread Jeff Whitaker
Arto Oksanen wrote: > Thanks Jeff! > > That is just a perfect solution!! > > arto Arto: I've cleaned up that example and added it to svn as examples/daynight.py. -Jeff > > 2009/8/24 Jeff Whitaker mailto:jsw...@fastmail.fm>> > > Arto Oksanen wrote: > > Thanks for your prompt reply. I

[Matplotlib-users] display pixels values on the backends

2009-08-24 Thread Xavier Gnata
Hi, I have already asked about that but I'm back once again :) The way I use matplotlib may be a corner case: I'm often looking at large (4k x 4k) images and I do want to see the pixels values moving the mouse over the display. imshow does a great job but all the backend only display "x= y=". I

[Matplotlib-users] Cursor position

2009-08-24 Thread Thomas Robitaille
Hi, I'm interested in controlling how the cursor position appears at the bottom of interactive windows. I noticed that by default, it is the Formatter that gets called. However, in my case, the displayed coordinates each depend on both the x and y pixel value, and therefore I need to somehow ove

[Matplotlib-users] How to contour plot my water quality data?

2009-08-24 Thread Ryan Neve
Hello, I hope someone can give me a tip to get this working. I have some data that I have manipulated in to the following format: x_dim is a 1D array of sample times (in minutes) array([ 0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 390, 420, 450, 480, 5

Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-24 Thread Sameer Regmi
Thank you Lee. Thank you Chris and John, the problem is solved. Chris, we did the method 1) as this was easier for us. Sameer On Sun, Aug 23, 2009 at 5:53 PM, John Hunter wrote: > On Sun, Aug 23, 2009 at 7:45 PM, Chris Barker > wrote: > > > This is a Bezier spline -- it can not exactly form a pi

[Matplotlib-users] Savefig bug with Patches

2009-08-24 Thread Peter-Jan Randewijk
Dear All, I came across this peculiar bug when using patches together with savefig. I first want to display the contour plot of the vector potentials in a electrical machine, and the the contour plot of the flux density. If I first define the patches (for the yoke and the magnets) and then the f

Re: [Matplotlib-users] Create axes instance position relative to another axes instance position??

2009-08-24 Thread Jae-Joon Lee
I think you can just copy the axes_grid.inset_locator.py file and use it after deleting a few lines of code that gives some ImportError. However, here is a some related post. http://www.nabble.com/embedding-figures-inside-another-%28coordinates%29-td22826126.html#a22832238 Just replace the bbox

[Matplotlib-users] Problem with hitlist(evt)

2009-08-24 Thread Romi Agar
Hi! After installing matplotlib 0.99.0 (over 0.98.6) I started to get the following exceptions while checking hitlist: Traceback (most recent call last): File "C:\Python26\Lib\site-packages\matplotlib\artist.py", line 231, in hitlist hascursor,info = self.contains(event) File "C:\Python

Re: [Matplotlib-users] RectangleSelector on demand

2009-08-24 Thread Matthias Michler
Hi Eli, I'm not sure I understood correctly, but maybe the attached example from the docsting of the RectangleSelector helps you. A kind of a choice-box is 'RadioButtons', whose usage is explained in the slider_demo.py kind regards, Matthias On Thursday 13 August 2009 04:05:09 Eli Brosh wrote

Re: [Matplotlib-users] plot3d ticker setting

2009-08-24 Thread Reinier Heeres
Hi Scripper, I'm not sure what you would like to know, but it is possible to change the tick settings on the 3D axes in the same way as for normal 2D axes. For example: from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FixedLocator, For

Re: [Matplotlib-users] Axplot3D in Qt4

2009-08-24 Thread Reinier Heeres
Hi German, Although I haven't tried it, it should certainly work. Please look at the examples which embed QT4: http://matplotlib.sourceforge.net/examples/animation/animation_blit_qt4.html and http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html. All you'll need to do