[Matplotlib-users] Tex rendering bug

2013-09-12 Thread Shahar Shani-Kadmiel
I tried rendering some TeX in a figure today but it didn't work. I realized, text.usetex in the matplotlibrc file was set to False. When I add rc('text', usetex=True) to my script, the axis labels are rendered as TeX as well which is undesirable. I don't remember ever having to set this before m

Re: [Matplotlib-users] plotting oriented (two sided) surfaces

2014-04-14 Thread Shahar Shani Kadmiel
Hi, I am not aware of such an option (AFAIK) but my suggestion would be to make two spheres with very small radii difference, paint the slightly smaller one (inside) blue and the other one red. Just a quick fix for the problem at hand. I'm sure the experts here will have plenty of very in depth

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Shahar Shani Kadmiel
How about different line styles or colors instead of markers?— Sent from Mailbox On Thu, May 1, 2014 at 2:10 PM, nertskull wrote: > I am trying to create a multipage pdf of about 750 different graphs. > Each graph has around 5,000 - 15,000 data points, giving me roughly 7 > million points across

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Shahar Shani Kadmiel
What do you consider a gap?Perhaps if you know that you can find those in your data and if you really want to visualize the gaps, plot those instead of the data.   — Sent from Mailbox On Thu, May 1, 2014 at 2:41 PM, Alan G Isaac wrote: > Suppose each data point is only 1 point (1/72 ") in diam

Re: [Matplotlib-users] Edges for wedges problem

2014-07-06 Thread Shahar Shani-Kadmiel
Hi, add linewidths=0 (or edgecolor='none', will do the same) to p = PatchCollection(patches, cmap=my_cmap) note that PatchCollections can either get their properties from the original patch you create (the wedge) via the option *match_original* which defaults to false. Shahar On Jul 5, 2014,

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Shahar Shani Kadmiel
When using scipy.interpolate.griddada, you could use 'nearest' if your data is sufficiently dense. This will 'map' your grid onto whatever rectangular grid leaving grid points outside the convex hull of the original grid empty. Well, not empty but nan. If you do wish to interpolate your dada, yo

Re: [Matplotlib-users] multiple plots on single axis

2014-11-27 Thread Shahar Shani-Kadmiel
you could go with something like this: import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(1, 10, figsize=(10,3)) fig.subplots_adjust(wspace=0) for i,axi in enumerate(ax): axi.axis((0,1,0,1)) axi.xaxis.set_ticks([]) axi.yaxis.set_ticks([]) if i is 0:

[Matplotlib-users] MemoryError with NetCDF

2012-09-07 Thread Shahar Shani-Kadmiel
1. an ipython session is invoked with qtconsole --pylab 2. I load a large NetCDF grid (Grid file format: nf (# 18) GMT netCDF format (float) (COARDS-compliant) [DEFAULT]), approx. 1.15 GB 3. I then try to plot with imshow the data added below are the lines leading up to the error and the error

Re: [Matplotlib-users] MemoryError with NetCDF

2012-09-07 Thread Shahar Shani-Kadmiel
On Sep 7, 2012, at 4:25 PM, Benjamin Root wrote: > > > On Fri, Sep 7, 2012 at 8:44 AM, Shahar Shani-Kadmiel > wrote: > 1. an ipython session is invoked with qtconsole --pylab > 2. I load a large NetCDF grid (Grid file format: nf (# 18) GMT netCDF format > (float) (COARD

Re: [Matplotlib-users] MemoryError with NetCDF

2012-09-07 Thread Shahar Shani-Kadmiel
On Sep 7, 2012, at 5:00 PM, Benjamin Root wrote: > > > On Fri, Sep 7, 2012 at 9:49 AM, Shahar Shani-Kadmiel > wrote: > On Sep 7, 2012, at 4:25 PM, Benjamin Root wrote: > >> >> >> On Fri, Sep 7, 2012 at 8:44 AM, Shahar Shani-Kadmiel >> wrote

[Matplotlib-users] griddata fails

2013-01-09 Thread Shahar Shani-Kadmiel
Hi, I'm trying to contour some data that I have and the griddata line fails. I tried running it on some synthetically generated data and I get the same IndexError. Any Ideas? Here is the example with the synthetic data: x = y = arange(-10,10,0.01) z = x**2+y**3 xi = yi = linspace(-10.1, 10.1

Re: [Matplotlib-users] griddata fails

2013-01-10 Thread Shahar Shani-Kadmiel
, Shahar On Jan 9, 2013, at 8:45 PM, Ian Thomas wrote: > On 9 January 2013 09:32, Shahar Shani-Kadmiel wrote: > Hi, > > I'm trying to contour some data that I have and the griddata line fails. I > tried running it on some synthetically generated data and I get the same >

Re: [Matplotlib-users] windrose

2013-03-19 Thread Shahar Shani-Kadmiel
Just a thought: Shouldn't the bars terminate with a arc rather then a straight line? What value should one reading this diagram look at? The one at the center of the "bar" or the "corners" these values can be quite different. Sent from my iPhone On Mar 19, 2013, at 8:00 PM, Paul Hobson wrote