[Matplotlib-users] Basemap to KML polygon

2008-07-22 Thread Lionel Roubeyrie
Looks like I've done a mistake with my last post, sorry Eli... I know how to save datas to a shapefile with the OGR library but only for points datas. I'll appreciate if somebody can point me how to save a filled contour map basemap into a polygon shapefile, can't find any exam

Re: [Matplotlib-users] Basemap to KML polygon

2008-07-22 Thread Jeff Whitaker
Lionel Roubeyrie wrote: > Looks like I've done a mistake with my last post, sorry Eli... > I know how to save datas to a shapefile with the OGR library but only > for points datas. > I'll appreciate if somebody can point me how to save a filled contour > map basemap

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread John Hunter
On Wed, Aug 6, 2008 at 1:28 PM, peter websdell <[EMAIL PROTECTED]> wrote: > No michael, that is what I was suggesting. Shame it doesn't work. > > I'm looking at using Enthoughts Chaco to do it. It's takes a bit more to get > it doing what I want though, and I don't know if it does alpha transparenc

[Matplotlib-users] embedding figures inside another (coordinates)

2009-04-01 Thread oyarsa the old
Hello, I am new to matplotlib and pylab. I have an image plotted with imshow/contour, or even just a coordinate system plotted with axis. I need to plot smaller contours/images on them at selected pixels. The only way I can figure how to do that is using axes. However, axes is defined on

Re: [Matplotlib-users] Colormap using (UV)coordinates from file

2009-05-17 Thread Alan G Isaac
With_Doc#head-11717acafb821da646a8db6997e59b820ac8761a You can contour any 2d array. You can optionally supply 1d coordinates. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contourf >>> import matplotlib.pyplot as plt >>> import numpy as np >>> plt.contour

[Matplotlib-users] contour's polygons

2010-07-28 Thread Phil Rosenfield
Hi, I'm 6 months into learning python and haven't been able to find a way to do this, so I hope you don't mind a basic question. I'd like to use the polygons contour makes but I can't figure out how to get them from ContourSet. Any examples or links to helpful infor

[Matplotlib-users] contour3D custom levels possible?

2010-08-01 Thread Tom Arens
igure() ax = axes3d.Axes3D(fig) X, Y, Z = axes3d.get_test_data(0.05) cset = ax.contourf(X, Y, Z, 0) # doesn't work with contour ax.clabel(cset, fontsize=9, inline=1) plt.show() Many greetings, Tom -- The Pa

[Matplotlib-users] Best way to plot grid point values on a map?

2007-04-03 Thread Simon Kammerer
Hi list, what's the best (meaning most efficient/fastest) way to plot grid point values on a map created with basemap? I'd like to plot the raw values of my data-array to the correspondig gridpoints, instead of having it transformed to something like contour or contourf. The ne

[Matplotlib-users] Contours and imshow plots have offset

2007-10-18 Thread Christian Lerrahn
Hi, when I plot 2D data with imshow() and then add a contour plot, my contours have an offset in relation to the data. At the same time there is white space at the edge of my plot, so I assume that it is the imshow plot that actually gets shifted. I'm new to Python and matplotlib, so I

Re: [Matplotlib-users] Is there a "transparent" color, for overlaying contouf regions?

2010-02-01 Thread Sourav K. Mandal
color will be > blue. Well, that's embarrassing -- if I had read the documentation more carefully, I would have realized that the levels spec "V" means different things for "contour" and "contourf". Thank you again! :) Regards, Sourav

[Matplotlib-users] setting zorder for basemap.imshow(); overlay on continents

2010-05-24 Thread P. R.M.
Hi, Im trying to create a precipitation contour plot using imshow() and basemap. Id like to draw the imshow() plot so that it overlays the filled continents, yet NOT the continental outlines. unfortunately, it appears that imshow()'s graphics are always drawn before everything else, s

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 1:25 PM, Oz Nahum <[EMAIL PROTECTED]> wrote: > Ok, I played with it a little bit. > > Here is what I know: > importing the data is not a big issue, I aready wrote a tutorial about it > here: > http://www.tabula0rasa.org/?p=21 There are a couple of functions for loading ASCI

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread John Hunter
On Wed, Jul 16, 2008 at 3:18 PM, Oz Nahum <[EMAIL PROTECTED]> wrote: >>You can transpose your inputs. For numpy arrays: x = x.transpose() > > i wrote: > for np arrays: x = x.transpose() > > but I still get a syntax error. umm that was english, not python. They python is x = x.transpose(

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Alan G Isaac
On Wed, 16 Jul 2008, Michael Droettboom apparently wrote: > [Attachment: dolphin.py : TEXT/PLAIN, 62 lines] I have to say, I was completely unaware of the path.Path capability of Matplotlib, but even if I had known of it, I would not have thought of how to exploit it this way. Even though this

[Matplotlib-users] contour overlapping

2009-05-13 Thread Bala subramanian
Friends, I have two matrices of same size. I used contourf to create the countour plots for the two matrices separately. i) I am interested in making one countour plot marking the areas which are different in both the countours or ii) Overlapping one countour over the other, so that i can compa

Re: [Matplotlib-users] contour overlapping

2009-05-14 Thread Armin Moser
Sebastian Busch schrieb: > Armin Moser wrote: >> Sebastian Busch wrote: >>> ... >>> array([list(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])]) >> It seems that I did not understand what you tried to reach. >> ... > > Sorry. I wanted to do the same as Matthias -- taking his example: I meant I

Re: [Matplotlib-users] pcolormesh and clim?

2013-03-28 Thread Jody Klymak
On Mar 28, 2013, at 11:51 AM, Eric Firing wrote: > Pay attention only to the listed keyword arguments above that table. Sounds good OTOH a clim argument for pcolormesh would be nice, as I often end up calling "clim" after I've made a contour overtop of my pcolor,

[Matplotlib-users] Single colorbar for two overlaid contourf plots

2013-06-13 Thread zetah
) plt.show() colorbar is representing last contour. I want to make colorbar that will match actual plot, which is combination of two contours obviously. I tried also something like: import numpy as np import matplotlib.pyplot a

[Matplotlib-users] Contoured basemap

2011-01-20 Thread R. Mitra
Hi I have a set of records with known lat long. I want to show the concentration of the records with a contour diagram on a world map in any projection. It cannot spill over to the oceans. I know I have to use basemap. Is there a quick recipe somewhere I can follow to give me a

[Matplotlib-users] Trouble with reading 2d array

2011-08-29 Thread Alexa Villaume
Hi there, I have a 2d array that I'd like to contour. The plot isn't turning out right and I think it's because the array isn't be read in correctly. It's a 25x41 array that is in a text file. I have tried using genfromtxt and the asciitable module to read the data

[Matplotlib-users] cross hatching in contours?

2011-09-15 Thread Jonathan Slavin
I'm wondering if there is some way to do cross hatching as a way to fill contours rather than colors (using contourf). The only references to cross hatching I see in the documentation are for patches type objects. As far as I can tell, contour and contourf return objects of their own

[Matplotlib-users] plotting a pcolor over a contourf

2007-08-31 Thread Jordan Dawe
I've been trying to plot a pcolor over a contourf with a masked array in the pcolor so that parts of the contour will show through underneath, but whenever I try to do this the pcolor wipes out the contourf. I can do this fine with a contourf over another contourf, but I'm plott

Re: [Matplotlib-users] Contours and imshow plots have offset

2007-10-19 Thread Eric Firing
Christian Lerrahn wrote: > Hi, > when I plot 2D data with imshow() and then add a contour plot, my > contours have an offset in relation to the data. At the same time there > is white space at the edge of my plot, so I assume that it is the > imshow plot that actually gets shif

[Matplotlib-users] windrose OO

2008-03-26 Thread Lionel Roubeyrie
Hi all, find with this message a modified version of windrose to be OO compliant. It uses inheritance from PolarAxes to create a WindroseAxes, with 4 methods (contour, contourf, bar and box). BTW it's now possible to control it like any other axes, with the limitation of subploting (subpl

Re: [Matplotlib-users] show Z data for contour plots

2008-05-18 Thread Eric Firing
There is nothing standard for this, and you would have to define more precisely what you mean by the Z data; what kind of interpolation do you want? This type of request has come up before, and I suspect John may have provided an illustration of how to do it in reply to some earlier such requ

Re: [Matplotlib-users] exporting with alpha channel, mathtext, contour labels

2006-06-19 Thread John Hunter
> "John" == John Pye <[EMAIL PROTECTED]> writes: John> issues: 1. When exporting the following image, which is a John> pcolor plot with alpha=0.15 and contours on top, I get no John> alpha channel in the resulting output, regard of whether I John> export as EPS or SVG. Is expor

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Darren Dale
On Thursday 13 July 2006 4:34 am, Mark Bakker wrote: > To be honest, I think the native array storage order matters a lot. [...] > However, a 1D vector in Python is by default a row, while in Matlab it is a > column. > What are you going to do if a 1D row is given as first argument and a > matrix

Re: [Matplotlib-users] Contours + alpha channel?

2006-08-31 Thread Eric Firing
x27; > > and I can't seem to get contour() or contourf() to utilize the > alpha keyword. No matter what value I set, alpha=1.0 on the > output. Alpha in general works fine, as the scatter_demo2.py > example gives very nicely alpha-channele

Re: [Matplotlib-users] How to visualize a, b results of x, y variables

2015-07-09 Thread Jonno
It might just have to be 2 separate contour/surface plots side by side, perhaps with a linked cursor between them. The other thing I considered was combining the a,b data into a single value (combined % deviation from ideal?) but that reduces the data which I'd rather not do if possible. O

Re: [Matplotlib-users] contourf() color mapping

2010-02-02 Thread James Conners
Great. Just what I needed. I appreciate it. - James On Feb 2, 2010, at 1:56 PM, Eric Firing wrote: > James Conners wrote: >> Hi, >> >> I'm having some trouble producing a filled contour how I want it. >> >> Say I'm plotting data over the

Re: [Matplotlib-users] bug in ContourSet and additional kwargs

2010-04-28 Thread Eric Firing
ntourf will autoscale with tight boundaries), and you don't need to pass the extend kwarg to colormap--it gets it from the ContourSet object. Eric """ make a contour plot with the levels specified, and with the colormap generated automatically from a list of colors;

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-14 Thread Michael Droettboom
ere something else I > should be doing to make this happen? > > Thanks again for your help. > > Cheers, > David > > > On Thu, 2008-07-10 at 11:52 -0400, Darren Dale wrote: > >> Hi David, >> >> On Thursday 10 July 2008 11:15:37 am David M. Kaplan wrote:

Re: [Matplotlib-users] FW: basemap.contourf, colormap, extend='none', & levels array question

2009-03-16 Thread Eric Firing
Pablo Romero wrote: > Eric, > For your reference, Im sending you a link to the python-grads interface files. Thank you. I am coming to the conclusion that you were mostly right early on. I suspect that whether points landing on a contour boundary end up treated as above or below

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
f the same contour, leading to overlap in some places, and gaps in others. You can download the PDF version (in which the exact geometry is much clearer). from: http://zaneselvans.org/dropbox/LinDensity_Grid.pdf Zane On Fri, Jun 12, 2009 at 5:51 AM, Michael Droettboom wrote: > So you see this beh

[Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread gsal
00x5000. Any asistance would be greatly appreciated. Thanks, Germán -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Need-to-plot-z-at-given-x-y-contour-or-something-tp38926.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

Re: [Matplotlib-users] dash length for dashed contours

2013-01-24 Thread Eric Firing
On 2013/01/22 11:50 PM, Andrew Dawson wrote: > Hi all, > > [TL;DR: is it possible to control the length of the dashes in dashed > contours, if so how?] > > I'd like to be able to control the length of dashes for dashed contours. > My motivation is that I'm making

Re: [Matplotlib-users] Feedback on an implementation of a matlab-ish "datacursor"

2013-03-13 Thread Jonathan Slavin
r the image and not those for the contours drawn on the image. How does that work exactly? As a side note, I thought that I had found a bug because an I was looking at image would, in some places, print only the x and y values but not the z value. Then I realized it was printing the values for a co

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
On 08/11/2010 06:13 AM, tgabriel wrote: > > > Problem 1: I have a dataset which has more values on one side of the scale > than the other in a contour map. Matplotlib will see that I have more values > towards one side of the scale, and put all of the colors in that color map > t

Re: [Matplotlib-users] norm keyword to contourf

2006-11-29 Thread Eric Firing
omments indicate, I think I will want to make more extensive changes, but this removes the immediate problem. To get the result you want, however, I think that your approach using the norm will not work; maybe it should, but right now it doesn't. Instead, simply specify the contour levels that

[Matplotlib-users] Artifacts In Transparent Contour Plots?

2009-07-29 Thread Joseph Smidt
I am making contourf plots with some transparency as I want to eventually overlay such plots. When I plot such plots I see artifacts or lines that shouldn't be there as seen here: http://josephsmidt.googlepages.com/ex.png Is this a bug or am I plotting incorrectly? My script is here: http://

[Matplotlib-users] mplot3d: large numbers scatter plot

2010-02-11 Thread D2Hitman
bright ideas as to how i could get round this problem? In 2D, i would use histogram2D and either contour or pcolor to show densities. Could something similar be done in 3D too? Thanks, Jon. -- View this message in context: http://old.nabble.com/mplot3d%3A-large-numbers-scatter-plot

[Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Wayne Watson
For newbies to MPL, needed imports seem a bit baffling. scipy, pylab, matplotlib, ...? What libs or lib components do I only need for a particular use? Suppose I want to produce a scatter, contour, or 3d plot. What do I need minimally or more widely? I'm assuming that I don't w

Re: [Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Alan G Isaac
On 2/11/2010 1:24 PM, Wayne Watson wrote: > Suppose I want to produce a scatter, contour, or 3d > plot. What do I need minimally or more widely? If you just want to work on these in isolation, you just need import matplotlib.pyplot as plt Nothing more. You can now use e.g. plt.plot wh

[Matplotlib-users] missing module docs

2010-02-22 Thread Ben Axelrod
the last release so should have had their documentation generated. Am I missing something? Can the documentation for these modules be found somewhere else? bezier blocking_input contour docstring finance hatch image mlab mpl offsetbox patheffects pylab pyparsing quiver rcsetup table texmanager

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-15 Thread Ian Thomas
Chris Barker wrote: > hmm -- I wonder if a post to matplotlib-devel is in order. Most of those > folks are on this list, to, but may not be following this thread. I'll post to matplotlib-devel shortly and see what response I get. > By the way, it sounds like your contouring code is in C++ -- is

Re: [Matplotlib-users] setting zorder for basemap.imshow(); overlay on continents

2010-05-24 Thread Eric Firing
On 05/24/2010 07:43 AM, Jeff Whitaker wrote: > On 5/24/10 10:09 AM, P. R.M. wrote: >> Hi, >> Im trying to create a precipitation contour plot using imshow() and >> basemap. >> Id like to draw the imshow() plot so that it overlays the filled >> continents,

Re: [Matplotlib-users] ocean profile

2008-07-16 Thread Alan G Isaac
> On Wed, Jul 16, 2008 at 5:51 PM, Christopher Barker wrote: >> I'd like to see the Delaunay stuff included -- in fact, >> you could contour irregular data directly using Delaunay >> triangulation. On Wed, 16 Jul 2008, John Hunter apparently wrote: > I'

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-17 Thread Ryan May
Michael Droettboom wrote: > Oz Nahum wrote: >> I am mostly frustrated with documentation writers who write very nice >> tutorials describing how to plot completely unusfull graphs of spheres >> inside loops and a dolphin swimming in the middle. > I'm sorry. I just couldn't resist writing a tutor

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread peter websdell
try this: list = numpy.array([0.66877509, 0.58785363, 0.32387598, 0.16877509, 0.48785363, 0.22387598, 0.96877509, 0.18785363, 0.52387598]) Pete 2008/8/8 stuartornum <[EMAIL PROTECTED]> > > Thanks again Pete for your help. > > I have numpy imported, and here is what my code looks like: > > #

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread Alan G Isaac
stuartornum wrote: > Also what does rand(3,3) actually produce? is it a list, dict, im not really > sure. Since you are using Python, you can just ask it: >>> import numpy as np >>> help(np.random.rand) Help on built-in function rand: rand(...) Return an array of t

Re: [Matplotlib-users] Fwd: contour legend

2008-10-20 Thread John Hunter
On Mon, Oct 20, 2008 at 6:57 AM, Jakub Urban <[EMAIL PROTECTED]> wrote: > C:\Python25\lib\site-packages\matplotlib\legend.pyc in > _update_positions(self, r > enderer) > 521 ydata = y*np.ones(handle.get_xdata().shape, float) > 522 handle.set_ydata(ydata+h/2.

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Scott Sinclair
.75ive.com/testdata.csv >> http://downloads.75ive.com/testdata.csv >> >> Any help is appreciated! > > > I assume you meant to include your dependent variable in the call to > contour, not just your longitude and latitude. In any case, you need to > grid your data

[Matplotlib-users] Label plot lines analogously to clabel

2009-03-02 Thread hazelnusse
I am generating level curves numerically with a gradient method of my own recipe. The result is a bunch of 100x2 vectors, each 'row' of which is a point on a level curve in the plane. My goal is to label each plot line analogously to how contour lines are labelled with clabel. Is thi

Re: [Matplotlib-users] Animate contour plot and color bar

2009-03-23 Thread Eric Firing
Deltarodigy wrote: > Ok so I have been looking into the Figure class and I still not clear on how > figure works. Does it contain all of the normal functions that are in pylab? > Does it just contain axes which are are where the graphs are, like subplots > in pylab? Do I need to use figure inside o

Re: [Matplotlib-users] ploting matrix data

2009-04-09 Thread Matthias Michler
Hi Bala, I added a small example showing up your matrix in order to have a running example, where you can specify your needs. In the program contourf could be replaced by contour or imshow - see help / docu / examples on the web The colormap can be specified with the kwarg "cmap&q

Re: [Matplotlib-users] contourf: matplotlib.path.Path are LINETOs?

2011-12-13 Thread Eric Firing
/api/path_api.html#matplotlib.path.Path) > although the number of vertices is 6, actually suggesting a CURVE4. > > Would that be a bug? I don't see it. x = np.arange(9) x.shape = (3,3) cs = contourf(x, 1) print cs.collections.get_paths() This shows a set of vertices with a matching set of LINETO (aft

Re: [Matplotlib-users] logairthmic contour plot

2012-06-14 Thread Steven Boada
List, I'm making a scatter plot using a for loop. Here's a simple example.. for i in range(10): x=rand() y=rand() scatter(x,y,label='point') legend() show() When you do this, you get a legend entry for every single point. In this case, I get 9 entries in my legend. Is there a

Re: [Matplotlib-users] Clipping Contours

2012-10-18 Thread Jae-Joon Lee
LineCollection instances in QuadContourSet.collections does. Below is a quick example. import matplotlib.pyplot as plt import numpy as np x = np.arange(100)-50 arr = (x**2 + x[:,np.newaxis]**2)**.5 cont = plt.contour(arr) col1 = cont.collections[3] # contour line to clip with. clip_path = col1.get_pat

Re: [Matplotlib-users] depth longitude plot

2013-03-04 Thread Benjamin Root
t.pcolormesh?? did not give much help > with best regards, > Sudheer > You can overlay contours on the pcolormesh image by simply using the plt.contour() function after the pcolormesh() call. It allows you to control which levels to contour and you can specify the attributes of those

Re: [Matplotlib-users] contour plot in semi-circle domain

2010-09-13 Thread Jae-Joon Lee
On Tue, Sep 14, 2010 at 12:09 AM, Kenshi hibino wrote: > I thought that "axis([0,pi,0,1])" make the writing domain semi-circle, > but complete circle was written as domain. > > Does anyone know how I should write? > With "polar" projection, it is not possible to make semi-circle domain. You need

[Matplotlib-users] rotate subplot with respect to whole figure

2011-04-15 Thread stauch
Dear experts, is there a way of rotating a single subplot in a multi-faceted figure with respect to the others? i.e. I have a contour plot representing a 2D histogram and on the top of it and to its left two line plots, representing the respective 1D components. I am aware of the possibility to

Re: [Matplotlib-users] Trouble with reading 2d array

2011-08-29 Thread Benjamin Root
How about Numpy's loadtxt()? Genfromtext is more of a specialty function. Ben Root On Monday, August 29, 2011, Alexa Villaume wrote: > Hi there, > I have a 2d array that I'd like to contour. The plot isn't turning out right and I think it's because the array isn'

Re: [Matplotlib-users] Trouble with reading 2d array

2011-08-31 Thread Benjamin Root
On Tue, Aug 30, 2011 at 9:47 PM, Alexa Villaume wrote: > Thanks for responding, Ben. I used loadtxt() and I'm still getting a very > strange looking contour plot. I've attached it and maybe that will be > helpful in diagnosing what is wrong with it. > > I have no reason

Re: [Matplotlib-users] Hovmoller plots

2007-08-22 Thread Jeff Whitaker
but you can see how to make a nice time axis by looking at date_demo.py at http://matplotlib.sourceforge.net/screenshots.html. Just replace the line plot with a contour plot, and there you go. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX:

[Matplotlib-users] TkAgg freezing, problems with backend

2007-11-01 Thread John
s like plot(x) or imshow(x) or contour(x) etc... - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Dow

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Stefan van der Walt
On Thu, Jul 13, 2006 at 10:34:11AM +0200, Mark Bakker wrote: > To be honest, I think the native array storage order matters a lot. > When you have a large dataset, transposing the matrix is not a cheap > command. If you use numpy, transposing is cheap. You see it when you try import numpy as N z

[Matplotlib-users] Contours + alpha channel?

2006-08-31 Thread Scott Ransom
Hi All, I'm using matplotlib (with agg backends) from recent svn: In [63]: matplotlib.__version__ Out[63]: '0.87.4' and I can't seem to get contour() or contourf() to utilize the alpha keyword. No matter what value I set, alpha=1.0 on the output. Alpha in genera

Re: [Matplotlib-users] clabel and bbox

2009-08-03 Thread Andres Luhamaa
3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) # difference of Gaussians Z = 10.0 * (Z2 - Z1) # Create a simple contour plot with labels using default colors. The # inline a

Re: [Matplotlib-users] Setting Figure = Figure possible?

2009-10-22 Thread Jae-Joon Lee
> I'm working on a small matplotlib app using PyQT4.  It involves selecting an > arbitrary number of data files and breaking each down into a group of 6 > contour subplots.  I want to be able to switch between contour plots from > each data set quickly to compare and contrast,

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
David M. Kaplan wrote: > > 2) I have noticed that the font used for the xticklabels and the font > > used for the xlabel and contour labels appears to be different (example > > attached). One appears to be serif and the other sans-serif. This > > seems to be due to using tex

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread Michael Droettboom
t;> >> On Thursday 10 July 2008 11:15:37 am David M. Kaplan wrote: >> >>> 2) I have noticed that the font used for the xticklabels and the font >>> used for the xlabel and contour labels appears to be different (example >>> attached). One appears t

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
David M. Kaplan wrote: > > 2) I have noticed that the font used for the xticklabels and the font > > used for the xlabel and contour labels appears to be different (example > > attached). One appears to be serif and the other sans-serif. This > > seems to be due to using tex

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Eric Firing
Oz > > > On Wed, Jul 16, 2008 at 7:51 PM, Eric Firing <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Oz Nahum wrote: > > Hi, > I want to draw a contour plot which uses data from files. I know > how t

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread peter websdell
is a heatmap, so the GridValue should correspond to a > colour and fill that particular square with the colour from the colorbar > i.e. > > levels = arange(0.0, 1.0, 0.025) > > Thank you in advance for any help. > -- > View this mes

Re: [Matplotlib-users] problem with basemap & my data arrays, gap around plot edge

2009-04-06 Thread Jeff Whitaker
o the following: >> >> Import numpy as np >> >> Z=my_data( .) >> >> m=basemap( . ) >> >> X,Y=m(*np.meshgrid(Z.lon,Z.lat)) >> >> Znp=Z.filled >> >> cs=m.contourf(X,Y,Znp) >> >> using this method, Im experiencing a str

Re: [Matplotlib-users] Alpha keyword not working with contourf

2012-02-11 Thread Eric Firing
almost never generate them any more.) Eric > > > It plots fine except except there is no transparency in colors of the > contour, it's like alpha is always set to 1.0 > > On Sat, Feb 11, 2012 at 8:23 AM, Eric Firing <mailto:efir...@hawaii.edu>> wrote: > >

Re: [Matplotlib-users] Basemap contourf question

2010-07-14 Thread Steve McFarlin
p', N = >> len(colorList)) >> ... >> m.contourf(x,y,z,cmap=cmap, levels=levels, extend='both') >> >> If the levels array is continuous then it works as expected. With the above >> settings I get unexpected results, which includes 'ghost cont

[Matplotlib-users] [Fwd: Re: colorbar, setting limits]

2007-03-28 Thread Eric Firing
two plots. Thanks for your help with this, and the tip about being explicit in my programs! -Evan import pylab as P from matplotlib.transforms import Value, Interval from matplotlib.ticker import MaxNLocator N = 12 # target number of contour levels a = P.arange(12, 23, .5) b

Re: [Matplotlib-users] Reusing basemap instance

2007-05-10 Thread Simon Kammerer
axes instance on which I have plotted my map decorations > (coastlines, meridians and so on). I would like to reuse that axes. On the > same axes* I would like to make filled contour plot and potentially a quiver > plot. These should be discarded after saving the plot to a file. >

[Matplotlib-users] could I get rid of the contour of Antarctica by using Basemap?

2013-12-30 Thread Chao YUE
Dear all, Happy new year! I am using Basemap toolkit to make some maps, I would like to write something at the bottom of the map, whose position is now taken by the contourf of Antarctica. Is there a way I can keep contours of other continents but suppressing the one for antarctica? I attached sh

Re: [Matplotlib-users] Region within contour --> 2D array

2014-08-28 Thread Benjamin Root
You are asking for the twinx() feature: http://matplotlib.org/examples/api/two_scales.html On Thu, Aug 28, 2014 at 9:24 AM, Shantha Kumara wrote: > Hi All, > > Thank you so much for your help, It really worked for me. > > > I need one more favor, > > > I have ploted the graph with 2 Y-axes > >

Re: [Matplotlib-users] contour3D in matplotlib

2015-01-20 Thread Paul Hobson
The gallery had a comprehensive set of available three dimensional plots, I think. http://matplotlib.org/gallery.html#mplot3d On Tue, Jan 20, 2015 at 01:19 Nils Wagner wrote: > Hi all, > > I found > > > http://stackoverflow.com/questions/9419451/3d-contour-plot-from-data-u

[Matplotlib-users] Problems with clabel in manual mode

2010-01-28 Thread Thomas Ingeman-Nielsen
ances, but that does not move the breaks/holes in the contour lines. Any suggestions on how to solve this problem? Thanks, Thomas <>-- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-11 Thread Robert Kern
On 2010-03-11 13:38 PM, Chris Barker wrote: > Ian Thomas wrote: >> To summarise, you recommend the following units of functionality: >> >> 1) Triangulation class to wrap existing delaunay code. > > The idea here is that it would provide a class that holds the result of > the triangulation. Yes, it

Re: [Matplotlib-users] setting zorder for basemap.imshow(); overlay on continents

2010-05-24 Thread Jeff Whitaker
On 5/24/10 10:09 AM, P. R.M. wrote: Hi, Im trying to create a precipitation contour plot using imshow() and basemap. Id like to draw the imshow() plot so that it overlays the filled continents, yet NOT the continental outlines. unfortunately, it appears that imshow()'s graphics are a

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Oz Nahum
>You can transpose your inputs. For numpy arrays: x = x.transpose() i wrote: for np arrays: x = x.transpose() but I still get a syntax error. > > Also, one more thing, I can't find how to expand the borders of the plot, > > say from 350 to 400 > > (same for depth) I tried usig xlim and ylim(0

Re: [Matplotlib-users] Several Functions, One plot (My Hello World)

2008-11-08 Thread John Hunter
.net/examples/pylab_examples/dolphin.html though the entire thread is worth an occasional reread :-) http://www.nabble.com/ploting-a-contour-graph-from-data-files-td18491504.html#a18491504 JDH - This SF.Net email is sponsore

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-22 Thread Eric Firing
gt; > Which errors out and requires a 2d array. > > By the way, here is a data file: http://downloads.75ive.com/testdata.csv > http://downloads.75ive.com/testdata.csv > > Any help is appreciated! I assume you meant to include your dependent variable in the call to contour, n

Re: [Matplotlib-users] We are on the Home strech and NEED help

2009-03-31 Thread John Hunter
Set. To do what it looks like you are trying to do, if you want to force a draw on the contour artists (which are matplotlib.collection.Collection instances), you would do self.contour = ax.contourf(...) for col in sel

[Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-06 Thread Sebastian Pająk
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get c

[Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get c

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Sebastian Busch
Matthias Michler wrote: > ... > for i in xrange(len(matrix3[:, 0])): # all rows > for j in xrange(len(matrix3[0, :])):# all columns > ... if your matrices a and b are rectangular (and i think the "diagonal" makes only sense in this case), you can also say: array([list(a[i,:i])+list(b[i,i:]) f

Re: [Matplotlib-users] contour overlapping

2009-05-14 Thread Sebastian Busch
Armin Moser wrote: > Sebastian Busch wrote: >> ... >> array([list(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])]) > It seems that I did not understand what you tried to reach. > ... Sorry. I wanted to do the same as Matthias -- taking his example: = from scipy import ones, array matrix1

[Matplotlib-users] logarthmic colorbar looses ticks

2011-10-20 Thread Marko Riedel
cator=ticker.LogLocator()) plt.colorbar() works fine to create a contour map with logarithmic colorscale. Now I want to refine the scaling by adding more colorlevels. Therefore I add another option for the contourf() function, as follows: plt.contourf(X,Y,Z.T, np.logspace(-1,5,15), locator=ticker.LogLo

[Matplotlib-users] Sampling a 3D plane to 2D data

2012-01-30 Thread Christoph Piefke
Hello everybody, I have a problem transferring from 3D data to a 2D representation. I used mayavi to define a cut plane through a volume data set and got the xyz coordinates for the points on the plane and the data at each point. Now I would like to make a contour plot of that data in

[Matplotlib-users] Alpha keyword not working with contourf

2012-02-11 Thread Alexa Villaume
Hi All, I'm just getting started with matplotlib. I'm trying to make a contour plot using contourf and have the different paths colored and semi transparent but the alpha keyword doesn't seem to do anything. I googled around and found that other people have had this same problem bu

Re: [Matplotlib-users] Need to plot z at given x, y...contour? or something!

2012-09-14 Thread Benjamin Root
On Fri, Sep 14, 2012 at 3:50 PM, Eric Firing wrote: > On 2012/09/14 9:00 AM, Benjamin Root wrote: > > tricontourf() might be more what you are looking for. Another > > possibility is pcolor() (note that for irregularly spaced grids, > > pcolormesh() would not work). > > Huh? I don't think there

[Matplotlib-users] 3D-projection scatter plot with legend

2013-06-21 Thread Thomas Goebel
Hi list, i am plotting some data using scatter and contour method while using projection 3d. Now i want to label these two plots, but i get the following warning: " UserWarning: No labeled objects found. Use label='...' kwarg on individual plots. warnings.warn("No

Re: [Matplotlib-users] Screenshot on homepage

2010-08-12 Thread Aman Thakral
Hi Simon, I'm fairly sure its just a contour plot with different color mappings for the lines and the fill. There are several examples of this on the site. Start here: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contour Best of Luck, Aman On Thu, Aug 12, 2010

[Matplotlib-users] Two sets of ticks on a colorbar?

2010-11-12 Thread Daniel Welling
Greetings. I am making some contour plots and in my field for this particular value, there are two widely used units. As such, it is very useful to have both units listed on the colorbar. To clarify: the colorbar's normal ticks would be facing to the right and labeled with Unit Type 1,

<    3   4   5   6   7   8   9   10   11   12   >