Re: [Matplotlib-users] Removing Markers from Figure

2011-05-27 Thread Patrick Marsh
Thanks, Eric! I had tried pt = plot(...) for p in pt: p.remove() and that did not do the trick. However, doing it the way you suggested worked like a charm. Thanks! Patrick --- Patrick Marsh Ph.D. Student / Liaison to the HWT School of Meteorology / University of Oklahoma Cooperative Inst

Re: [Matplotlib-users] making a bar chart with time on xaxis

2011-05-27 Thread Amy Zhang
Thank you all! vlines was exactly what I needed. Amy On Fri, May 27, 2011 at 3:03 PM, Alan G Isaac wrote: > On 5/27/2011 12:28 PM, Amy Zhang wrote: > > I've created the following chart using matplotlib.pyplot.plot(). However, > I would like to see the data points as bars from the bottom of the g

Re: [Matplotlib-users] Not able to access CSV file:

2011-05-27 Thread Karthikraja Velmurugan
Hello Daniel, The code you have given is simple and works fab. Thank you very much. But I wasn't able to find an example which accesses the columns of a CSV files when I import data through "datafile="filename.csv"" option. It will be great if you could help with accessing individual columns. What

Re: [Matplotlib-users] Removing Markers from Figure

2011-05-27 Thread Eric Firing
On 05/27/2011 07:53 AM, Patrick Marsh wrote: > Greetings, > > I'm needing to create two plots, one is to serve as an overlay on the > other. The overlay contains a set of markers to identify points in > the underlaid probability field. I'm doing this in a loop with a map > background, so to preve

Re: [Matplotlib-users] making a bar chart with time on xaxis

2011-05-27 Thread Alan G Isaac
On 5/27/2011 12:28 PM, Amy Zhang wrote: > I've created the following chart using matplotlib.pyplot.plot(). However, I > would like to see the data points as bars from the bottom of the graph up to > the points Matplotlib supports stem plots: http://matplotlib.sourceforge.net/api/pyplot_api.html#

[Matplotlib-users] Removing Markers from Figure

2011-05-27 Thread Patrick Marsh
Greetings, I'm needing to create two plots, one is to serve as an overlay on the other. The overlay contains a set of markers to identify points in the underlaid probability field. I'm doing this in a loop with a map background, so to prevent redrawing the map every time, I want to remove the ma

Re: [Matplotlib-users] making a bar chart with time on xaxis

2011-05-27 Thread Aman Thakral
Hi Amy, Use the vlines() function. Its what I have used in the past. Cheers, Aman On Fri, May 27, 2011 at 12:28 PM, Amy Zhang wrote: > Hello, > > I've created the following chart using matplotlib.pyplot.plot(). However, I > would like to see the data points as bars from the bottom of the graph

Re: [Matplotlib-users] mathbb and eps export

2011-05-27 Thread Michael Droettboom
The main difference is file size. When ps.useafm is True, the fonts don't have to be embedded because it uses fonts that are required to be available with every Postscript interpreter. When it is False, the fonts have to be included as part of the file, resulting in larger file sizes. Mike

Re: [Matplotlib-users] mathbb and eps export

2011-05-27 Thread Oscar Benjamin
Thanks, Mike. I've been away from the Windows machine for a couple of days. I did ps.useafm set and your suggestion solved the problem. Is there a reason not to use TrueType in all of my figures (since it wasn't enabled by default)? Thanks, Oscar. On Tue, May 24, 2011 at 11:06:10AM -0400, Michae

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Michael Droettboom
Ah, yes. That is all true. I'm not sure what options there may be in that case. Mike On 05/27/2011 10:56 AM, Simon Jesenko wrote: > Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 > nonetheless. I guess that pdf.fonttype parameter is used only when > matplotlib uses it

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Simon Jesenko
Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 nonetheless. I guess that pdf.fonttype parameter is used only when matplotlib uses it's own engine to render latex, and not when text.usetex=true is used. Cairo backend is not support when text.usetex=true (only Agg, pdf a

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Michael Droettboom
Have you tried setting the rcParams "pdf.fonttype" to 3? That should subset the fonts. Also, the Cairo backend supports font subsetting. Mike On 05/27/2011 07:00 AM, Simon Jesenko wrote: > Hi, > > I have a problem with large file-sizes of plots saved to pdf, when using > rcParams['text.usetex'

[Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Simon Jesenko
Hi, I have a problem with large file-sizes of plots saved to pdf, when using rcParams['text.usetex']=True Files are very large (~150kb for simple line plot with some mathematical latex expressions) as all fonts are fully embedded into pdf. When resulting pdf is postprocessed (e.g. as is http:/