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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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!
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
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
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
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
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
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.
>
>> -
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
22 matches
Mail list logo