Re: [Matplotlib-users] matplotlib save image as postscript, when xlabel is saved as text and not path

2014-11-03 Thread Jeffrey Blackburne
Hi Oren, The link below leads to a recent related thread on this list. Maybe it will be informative. I believe it implies that the answer is No, you have to use TeX. http://matplotlib.1069221.n5.nabble.com/Editable-text-from-matplotlib-td44219.html -Jeff On Mon, Nov 3, 2014 at 11:40 AM, Paul H

[Matplotlib-users] LateX Legend (again)

2010-02-10 Thread Jeffrey Blackburne
Hi everyone, This has been brought up before, but not completely addressed. Is it possible to get the text in a Legend to match the rest of the text when using LateX? Here is an example of the problem: import matplotlib as mpl mpl.rcParams['text.usetex'] = True import matplotlib.pyplot as plt

Re: [Matplotlib-users] LateX Legend (again)

2010-02-10 Thread Jeffrey Blackburne
I send all of my figures through LaTeX and don't have this problem. > The only thing I can think of is to check your matplotlibrc file > and make sure you've set the legend font to be the same size as the > other fonts. > > HTH, > -paul h. > >> -

Re: [Matplotlib-users] turning off tick labels

2010-02-14 Thread Jeffrey Blackburne
On Feb 14, 2010, at 5:41 PM, Jan Strube wrote: > Dear matplotters, > > I'm trying to follow > http://matplotlib.sourceforge.net/examples/pylab_examples/ > ganged_plots.html > as an example how to turn of the ticks in the case of shared x axes. > The tick labels are gone, but unfortunately, matpl

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jeffrey Blackburne
k labels. > > Do you have another suggestion? > > Cheers, > Jan > > On Sun, Feb 14, 2010 at 11:28 PM, Jeffrey Blackburne > wrote: > > On Feb 14, 2010, at 5:41 PM, Jan Strube wrote: > > Dear matplotters, > > I'm trying to follow > http://matplot

Re: [Matplotlib-users] Hatching linewidth?

2011-09-15 Thread Jeffrey Blackburne
On Sep 14, 2011, at 4:04 PM, Jeffrey Blackburne wrote: > I am trying to create a hatched region, with a "diagonal lines" hatch > pattern. When using the PS backend, the hatch lines come out very > narrow. Is there a way to increase the thickness of the hatch lines? > I am u

Re: [Matplotlib-users] data free margin

2011-11-23 Thread Jeffrey Blackburne
On Nov 23, 2011, at 4:09 PM, C M wrote: > > > On Tue, Nov 22, 2011 at 3:09 PM, Nicolas Rougier > wrote: > > Is that what you want ? > > No ticks, no labels: > > import matplotlib.pyplot as plt > plt.plot(np.arange(10), np.arange(10)) > plt.ylim(0,10) > plt.yticks(np.linspace(3,10,8)) > plt.sho

Re: [Matplotlib-users] Normalized Histograms

2011-11-30 Thread Jeffrey Blackburne
Hi Steven, Try this: import numpy as np import numpy.random import matplotlib as mpl import matplotlib.pyplot as plt x = np.random.randn(1000) h, binedg = np.histogram(x, 10) wid = binedg[1:] - binedg[:-1] plt.bar(binedg[:-1], h/float(x.size), width=wid) On Nov 30, 2011, at 10:25 AM, Steven B

Re: [Matplotlib-users] svg in plot

2012-02-16 Thread Jeffrey Blackburne
Hi William, I am fairly certain that matplotlib does not have the capability to do what you are looking for. (If I am wrong, I'm sure someone will correct me.) You may have better luck using something like Scribus or Inkscape. Best, Jeff On Feb 16, 2012, at 2:43 PM, William Hoburg wrote:

Re: [Matplotlib-users] Setting the bin content of a histogram

2012-03-01 Thread Jeffrey Blackburne
Hi, > I'm currently using the hist plot from matlibplot. Here I have the > following > question: is there an easy way to set the bin content of a > specified bin? > For example, I would like to call set_bin_content(bin_index=1, > value=1) > once instead of filling in 1 times the same

Re: [Matplotlib-users] x and y labels that span multiple axes

2012-03-09 Thread Jeffrey Blackburne
On Mar 9, 2012, at 1:05 PM, Jonathan Slavin wrote: > Hi all, > > I'm plotting a set of subplots (2 x 3) and I'd like to label the x > and y > axes with one title each (i.e. spanning the axes) since the units > of all > the x axes and y axes are the same. I know that I can use fig.text to > d

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-21 Thread Jeffrey Blackburne
On Aug 21, 2012, at 10:58 AM, Virgil Stokes wrote: > In reference to my previous email. > > How can I find the outliers (samples points beyond the whiskers) in > the data > used for the boxplot? > > Here is a code snippet that shows how it was used for the timings > data (a list > of 4 sublis

Re: [Matplotlib-users] boxplot -- how (more)

2012-08-22 Thread Jeffrey Blackburne
On Aug 22, 2012, at 10:04 AM, Virgil Stokes wrote: > On 21-Aug-2012 17:52, Jeffrey Blackburne wrote: >> >> On Aug 21, 2012, at 10:58 AM, Virgil Stokes wrote: >> >>> In reference to my previous email. >>> >>> How can I find the outliers (sampl

Re: [Matplotlib-users] Unequal size gangplots

2010-06-21 Thread Jeffrey Blackburne
I have used add_axes() to do this in the past. E.g., import matplotlib.pyplot as plt fig = plt.figure() leftmarg = 0.125 # change these numbers to taste botmmarg = 0.125 width = 0.825 height = 0.825 frac = 2./3. ax0 = fig.add_axes([leftmarg, botmmarg, width, frac*height]) ax1 = fig.add_axes([le

Re: [Matplotlib-users] Vectorization

2010-07-02 Thread Jeffrey Blackburne
On Jul 2, 2010, at 2:15 PM, Nicolas Bigaouette wrote: > Hi all, > > I don't really know where to ask, so here it is. > > I was able to vectorize the normalization calculation in quantum > mechanics: . Basically it's a volume integral of a scalar > field. Using: > norm = 0.0 > for i in numpy.ar

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread Jeffrey Blackburne
On Jul 12, 2010, at 5:45 PM, Janne Blomqvist wrote: >>> a.legend() >> >> Change this to >> >> lg = a.legend() >> fr = lg.get_frame() >> fr.set_lw(0.2) > > Thanks, this solved it. A bit annoying that it can't be done with rc > params, but hey, at least it works. Hi Janne, Actually, I have bee

Re: [Matplotlib-users] Dashed line step plot

2010-09-17 Thread Jeffrey Blackburne
I get a solid line for plt.step like you do. MPL 1.0.0, SVN revision 8657. -Jeff On Sep 17, 2010, at 4:34 PM, Gökhan Sever wrote: > Hello, > > Can someone confirm me if this creates a dashed line for a simple step plot? > > # this is fine > plt.plot(range(10), "g--") > > # plots solid line!

Re: [Matplotlib-users] Libertine font in Matplotlib?

2010-10-20 Thread Jeffrey Blackburne
You might be able to do this (before importing pyplot or pylab): matplotlib.rcParams['text.usetex'] = True matplotlib.rcParams['text.latex.preamble'] = '\usepackage{libertine}' and optionally (if you have xpdf or poppler installed): matplotlib.rcParams['ps.usedistiller'] = 'xpdf' Good luck, Jef

[Matplotlib-users] edge joinstyle on rectangles

2011-08-31 Thread Jeffrey Blackburne
Hi, Are the edges of the rectangles returned by plt.bar() supposed to conform to the 'lines.solid_joinstyle' rcParam? If not, is there another method for specifying that joinstyle? I have not been able to change the joinstyle using this method in versions 1.0.0 (linux, gtkagg and tkagg) or 1.0

Re: [Matplotlib-users] edge joinstyle on rectangles

2011-09-06 Thread Jeffrey Blackburne
On Sep 6, 2011, at 10:48 AM, Michael Droettboom wrote: >On 08/31/2011 01:20 PM, Eric Firing wrote: >> On 08/31/2011 06:45 AM, Jeffrey Blackburne wrote: >>> Hi, >>> >>> Are the edges of the rectangles returned by plt.bar() supposed to conform >>> to th

[Matplotlib-users] Hatching linewidth?

2011-09-14 Thread Jeffrey Blackburne
Hi, I am trying to create a hatched region, with a "diagonal lines" hatch pattern. When using the PS backend, the hatch lines come out very narrow. Is there a way to increase the thickness of the hatch lines? I am using mpl version 1.0.1. I think this question has been asked before (e.g., i

[Matplotlib-users] Hatching linewidth?

2011-09-14 Thread Jeffrey Blackburne
Hi, I am trying to create a hatched region, with a "diagonal lines" hatch pattern. When using the PS backend, the hatch lines come out very narrow. Is there a way to increase the thickness of the hatch lines? I am using mpl version 1.0.1. I think this question has been asked before (e.g., i