\/ \
/ `"~,_ \\
__o ?
_ \<,_ /:\
--(_)/-(_).../ | \
--...J
Paul Ivanov
ipython and matplotlib core developer
http://pirsquared.org
--
Infragistics Professional
Build stunning WinForms apps today!
Re
seeing, please
open a new one.
best,
--
_
/ \
A* \^ -
,./ _.`\\ / \
/ ,--.S\/ \
/ `"~,_ \\
__o ?
_ \<,_ /:\
--(_)/-(_)----.../ | \
---
A* \^ -
,./ _.`\\ / \
/ ,--.S\/ \
/ `"~,_ \\
__o ?
_ \<,_ /:\
--(_)/-(_).../ | \
--...J
Paul Ivanov
http://pirsquared.org
--
"Accelerate
/ ,--.S\/ \
/ `"~,_ \\
__o ?
_ \<,_ /:\
--(_)/-(_).../ | \
--...J
Paul Ivanov
http://pirsquared.org
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instan
A* \^ -
,./ _.`\\ / \
/ ,--.S\/ \
/ `"~,_ \\
__o ?
_ \<,_ /:\
--(_)/-(_).../ | \
--...J
Paul Ivanov
http://pirsquared.org
--
Android is
, map_name in enumerate(plt.cm.cmap_d):
plot_gradient_hack((0, i), (1, i), cmap = map_name, linewidth=4)
plt.text(1,i, map_name, va='center')
# comment out this last line to plot al
back, remove all but the last few bits of the file path
(since other folks won't necessarily be installing to the extact
path you've installeed to), and feed it to google.
The first google hit for "_path.so: no matching architecture in
universal wrapper" is this stackoverflow post:
version__ ? I think that code only made it's
way into v1.2.0 (the latest stable), and was did not make it into
v1.1.1 (or anything before it)
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirs
't
mind me forwarding the correspondence to the list for posterity.
> Again, thanks for your help.
>
Happy to be helpful,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
ld be possible.
An alternative, of course, would be to change the colormap you're plotting
with, or add an alpha value to the images you're plotting so that the black
widgets can be seen. Maybe it's inelegant, but looks like the path of least
resistance...
best,
--
Paul Ivanov
314 ad
o open up.
I'm still rather enjoying this whole thread, thanks for opening
up. I got worried how relatively quiet it's been here for a few
months, and glad we're starting to buck that trend.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsq
ation=90,va='bottom',ha='center',**kw)
text.draw(fig.canvas.get_renderer())
ex = text.get_window_extent()
t = transforms.offset_copy(text._transform, y=ex.height, units='dots')
plt.figure()
rainbow_text(0.5,0.5,"all unicorns poop rainbows ! ! !"
putation.
Take a look at this example:
http://matplotlib.sourceforge.net/examples/api/date_index_formatter.html
Just define something like:
def your_function(x,pos=None):
return "%d days" % (x/86400)
ax.xaxis.set_major_formatter(ticker.FuncFormatter(your_function))
best,
--
Paul I
100*np.random.rand(12), 100*np.random.rand(12),
c=np.random.rand(12), s=np.random.rand(12)*100)
plt.show()
I don't want to take away all of your fun, so have a look at
adding (mouse clickable) buttons to this using either
examples/widgets/buttons.py or examples/widgets/ra
ss, now :)
I want to second Ben's comments: I learned (and continue to
learn) quite a bit about matplotlib by trying to answer the
questions others have (with my trusty IPython tab-completion, and
when necessary, doing what every Python Jedi does, and use the
Source) - and by following along with
> index = np.intersect1d(lower, upper)
> ax1.plot(x[index], y[index], linestyle='-', color=color, linewidth=2)
Another way (if you're ok with only coloring the markers) would
be to use ax1.scatter(x,y,c=colorlist) where the length of all
three arguments is the same. Sca
imilar to yours by first doing
plot(1,0) before the plot_date call.
Can you try to create a new figure just before the call to plot_date?
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.or
.shape = all_y.shape = -1
H, yedges, xedges = np.histogram2d(all_y, all_x, bins=100)
extent = [xedges[0], xedges[-1], yedges[-1], yedges[0]]
ax = plt.gca()
plt.hot()
ax.imshow(H, extent=extent, interpolation='nearest')
ax.invert_yaxis()
I'm attaching the two images for r
t
it works as it should on your chosen backend.
Can anyone else who has OS X verify David's error? David, it'd be
useful to know what your matplotlib.__version__ is, as well as
whether or not the error occurs on the latest version, if that's
possible.
best,
--
Paul Ivanov
314 addr
re instance, using something like:
f.set_size_inches(plt.rcParams['figure.figsize'], forward=True)
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
-
1.0001e-15
ipdb>
I believe that this has to do with the limited precision and
non-uniformity of the possible numbers represented by the
floating point standard. The check for constant spacing likely
should take into account and compare dx.ptp() to the average dx
itself, or some
ng point, as I include a discussion
on the limitation of mpl colormaps there.
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Descri
ect in the plot, you
might have to play around with changing the axis formatters
(though there might be an easier way of doing that, which escapes
me right now)
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/P
0, it's
more like 20.1000+change, in ipython, run '%precision 20' to
see what I mean.
Either the np.linspace or the mpl code likely needs to change,
because in mpl, the error gets raised when, effectively:
dx = np.diff(xi)
dx.max() - dx.min() > np.finfo(xi.dtype).resolu
hey were having
along with how they resolved it, so that others can follow in their
footsteps later.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
--
>> On Fri, Nov 11, 2011 at 8:53 AM, Paul Ivanov wrote:
>>> might you be on an old matplotlib.__version__?
On Fri, Nov 11, 2011 at 11:18 AM, magurling wrote:
> This is probably it. I installed by "apt-get install" but keep getting
> version 0.99.3 installed.
&g
Oops, didn't reply to list last time:
On Fri, Nov 11, 2011 at 8:53 AM, Paul Ivanov wrote:
> On Tue, Nov 8, 2011 at 4:49 PM, magurling wrote:
>>
>> I want a legend without the black border. I've tried a few things that have
>> been suggested on this forum and else
els of the inner figure.
> I've tried set_frame_on on the axis, set_frameon on the figure,
> axisbg_color, and so on.
Would it be sufficient to set the background color behind the text
labels? If 'ax' is your inner axes, do:
ax.yaxis.label.set_backgroundcolor('red')
ax.
On Tue, Oct 25, 2011 at 4:59 PM, Rich Shepard wrote:
> On Tue, 25 Oct 2011, Paul Ivanov wrote:
>
>> I see you sent this just a few minutes ago - let's try to figure this out
>> interactively via IRC on #matplotlib channel on freenode. If you don't
>> have an
'm sure it's as frustrating for you as it is for me.
Well, I hope the dentist trip was more of a success :) Don't worry
about it - it's become kind of a fun challenge now.
I see you sent this just a few minutes ago - let's tr
On Mon, Oct 24, 2011 at 3:26 PM, Rich Shepard wrote:
> On Mon, 24 Oct 2011, Paul Ivanov wrote:
>
>> those two properties should not have spaces in them - according the the
>> AFM file spec that I could find - they should be one word - which is what
>> matplotlib expects
have been seeing "Found an
unknown keyword in AFM header (was Underline)" for the afm files that
ship with matplotlib (but we were on your machine - so something
changed them).
Please diff your pagko8a.afm against
https://raw.github.com/matplotlib/matplotlib/master/lib/matplotlib/mpl-d
tplotlib?
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
--
The demand for IT networking professionals continues to grow, and the
demand for spe
On Sat, Oct 22, 2011 at 7:54 AM, Rich Shepard wrote:
> On Fri, 21 Oct 2011, Paul Ivanov wrote:
> I will certainly add diagnostic code requested by you, Ben, and anyone
> else and report the results when trying to run the model. I do need to fix
> this and have no idea what's b
ter (Delete), and not
meant to be a printable character.
Maybe you already figured this out in following up with Ben, but if
not, can you 'print fh.name' before the while 1: in
_parse_char_metrics so we find out which .afm file is the culrpit
--
Paul Ivanov
314 address only used for
sure that there
isn't some stale pointer to an old version of matplotlib out there -
so can you let us know what procedure you used to do the upgrade?
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.o
]
can you try explicitly swapping your axes? f.axes =
[f.axes[1],f.axes[0]] instead of the call to reverse?
> BTW, what's matplotlib.axes.AxesSubplot? I couldn't find this class.
see SubplotBase class and subplot_class_factory function in matplotlib/axes.py
best,
--
Paul Ivano
seful printed information leaves the screen. :)
This problem was fixed by 2c924046 (Jim Radford 2011-03-08 15:07:23 -0800 459)
and now reads:
self.canvas.set_rubberband(int(x0), int(y0), int(x1), int(y1))
Please update either that line alone, or checkout the latest
matplotlib sources from GitH
for the one that
is the furthest back, and turn it off for all others lying on top of
it. You can see what happens if you don't do this by omitting the
calls to set_frame_on, and then verifying that the second line does
not show up (because the original axes' frame patch is blocking it.
rst
figure, so resizing the first figure, you'll see changes to the
size of the plot in the second figure.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
w.
Have you tried blitting just the relevant axis? Look at the
blitting animation examples (on the site) which have moved to
examples/animation/old_animation in git.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
ns to what the gtk backend can render without using Agg
(I recall a message on this list about rotated text not working,
due to the interface to GTK we were using) so perhaps you ran
into this.
Can you try the gtkagg backend?
best,
--
Paul Ivanov
314 address only used for lists, o
eady have an example for this in git:
https://github.com/matplotlib/matplotlib/blob/master/examples/pylab_examples/broken_axis.py
but now I see that's exactly the example that's the top answer,
there, heh.
best,
--
Paul Ivanov
314 address only used for lists, off-list di
> > ly.append(pt[1])
> > x,y = np.array([lx, ly])
> > line = mlines.Line2D(x, y, lw=5., alpha=0.4)
> > frame1.add_line(line)
The above can be done with just two lines:
x,y = zip(*((267, 140), (380, 773), (267, 958)))
1.plot(x,y)
best,
--
Paul Ivanov
314 address only used
tion (with its offsets and transOffset properties, and its
> set_transform() method) to do the positioning/scaling.
>
> Is there a better way?
This looks similar enough:
http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html
best,
--
Paul Ivanov
314 address only
for example,
a gui widget is tracking the axes in the figure."
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
---
s.sourceforge.net/project/matplotlib/matplotlib/matplotlib-0.98.5/matplotlib-0.98.5.3.tar.gz
> The error which causes both to fail is:
Hi Bogdan,
are you specifically trying to install that old version of
matplotlib? If not, add the -U flag to easy_install to try to
grab a newer version
best,
--
like this)
> Define 3 sets of axes by hand instead of subplot(211) you use
> plt.axes(...) to create them (I guess there may be a nicer
> method, not sure).
I belive the plt.subplots() command is what Sebastian was
referring to.
best,
--
Paul Ivanov
314 address only used for lists,
see:
http://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital
e seeing this?
Hi Noah,
I'm not on windows, but is this an application that you built and
compiled? Is recompiling matplotlib an option?
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
sig
dd these two
lines to your setup.cfg (or create one with these two lines in
it):
[gui_support]
tkagg = False
You can read the setup.cfg.template for a full explanation (and
other install options available to you).A
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
h
7;lower',vmin=0,vmax=1)
or something like this:
plt.Rectangle((x[10],y[10]),width=delta,height=delta,color='red')
ax = plt.gca()
ax.add_artist(r)
plt.draw()
best,
--
Paul Ivanov
314 address only used
Jason Heeris, on 2011-04-23 00:29, wrote:
> On 22 April 2011 03:56, Paul Ivanov wrote:
> > Thanks for the report, Jason. It's a bug - could you please file
> > a bug report, so we can keep track of it?
>
> Will do, thanks for the workarounds :)
>
> > or i
, but
here are two workaround for you. Either do:
figure.subplotpars.right=.8 # make smaller if still crashes
or if it's an option, use gtkagg, which doesn't suffer from the crash.
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg
as FigureCanvasGTK
best,
--
Paul Iv
anything
affects how many unique combinations of x and y you'll have.
len(set(zip(n_x,n_y))) will tell you how many points you should
see.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F
e scales are different only in one dimension,
something like twinx() or twiny() would work to create new axes
on top of another one, sharing the one of the dimension, while
being independent in the other.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsqu
oes the error
say?
> 2. i can't run my module
does your module import in plain python? what is the error
message?
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pir
to gain that functionality.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
--
Xperia(TM) PLAY
ault parameter for color.
This should probably be changed to act the same way plot does,
but that isn't currently implemented. This would be a good first
patch for a newcomer -- and would make matplotlib more consistent.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct
standalone script that reproduces the
problem, we'd be able to much more definitively track down the
problem and find a solution.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
si
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
--
Xperia(TM) PLAY
It's a major break
):
ax.spines['top'].set_visible(True)
if ax.is_last_row():
ax.spines['bottom'].set_visible(True)
if ax.is_first_col():
ax.spines['left'].set_visible(True)
if ax.is_last_col():
ax.spines['right'].set_visible(T
wants is this:
x,y = zip(*sorted(data.items()))
plt.plot(x,y)
I think of the * in front of arguments to zip as being the pull
tab or slider of the zipper (since it's at the top, you'll be
pulling it down, or unzipping): see
http://docs.python.org/library/functions.html#zip
best,
--
in test_text:test_font_styles, but
this has been the case for a while, it's just that these tests
weren't running before.
Any developers want to chime in on this?
best,
--
Paul Ivanov
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
Michael Droettboom, on 2010-07-27 11:19, wrote:
&g
e is in test_text:test_font_styles, but
this has been the case for a while, it's just that these tests
weren't running before.
Any developers want to chime in on this?
best,
--
Paul Ivanov
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
Michael Droettboom, on 2010-07-27 11:19, wrot
rted to Python 3. You can notes about the work in
progress, what's been completed, and what's left to do here:
https://github.com/matplotlib/matplotlib-py3/wiki
(Also, this is more of a matplotlib-users question, so I'm replying
to that list)
best,
--
Paul Ivanov
314
called "How to make a grid of (plot) grids?" from
this list in January, 2011 at [1] or [2]:
1. http://old.nabble.com/How-to-make-a-grid-of-%28plot%29-grids--td30581281.html
2.
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19710.html
best,
--
Paul Ivanov
lex=False,scaley=True)
plt.draw()
ax.callbacks.connect('xlim_changed',cb)
plt.xlim(0,30)
# for the next line to work in ipython you'll need to
# paste/or cpaste this entire script, or just pause before
# changing the xlim again to verify that it works as intended
raw_input("press retur
f the marker.
npts = 100
a = np.random.rand(npts)
b = np.random.rand(npts)
c = np.random.rand(npts)
d = np.random.rand(npts)
plt.scatter(a,b,c=c,s=c*100, marker='o')
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.o
)):
ax.arrow(x,y,dx,dy, head_width=10, length_includes_head=True)
ax.set_ylim(0, 350)
for i, label in enumerate(labels):
x_loc = data1[i]
y_loc = data2[i]
txt = ax.annotate(label, xy=(x_loc, y_loc), size=8,
xytext=(-10, 10), textcoords='offset points',
arrowp
subplot.
Just move the 'months = ...' line inside the for-loop, and you'll
be all set.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
ething.png",dpi=160) or by setting
the savefig.dpi rcParam to affect all plots. You might also play
with using different fontsize parameters when calling .text(...)
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3
sn't an option, but the path of least
resistance would be to make a polar subplot and transform your
rectangular data to polar coordinates for the purposes of
plotting (rather than transforming the grid to polar). This way
you'll get your clipping "for free."
best,
--
Paul Ivanov
314 add
#!/usr/bin/env python
import sys
print "Program output:", sys.argv
print sys.argv[-1]
$ ./commandline.py "something
with
newlines"
Program output: ['./commandline.py', 'something\nwith\nn
to :
fig = plt.figure()
ax = plt.subplot(1,1,1)
Andrea Crotti, on 2011-03-01 12:58, wrote:
> Paul Ivanov writes:
> > You can do this with:
> >
> > ax = plt.subplot(111)
> > ax.plot(range(10))
> > ax.set_ymargin(.2)
> > ax.set_xmargin(.1)
> > # or
plotted.
You can do this with:
ax = plt.subplot(111)
ax.plot(range(10))
ax.set_ymargin(.2)
ax.set_xmargin(.1)
# or ax.margins(.1,.2)
ax.autoscale()
plt.draw()
see also the docstring for ax.autoscale_view for more.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct em
3))
ag.axes_all[-1].set_visible(False)
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
--
Free Sof
> position for its y-axis must be on the right, the line chart's y-axis on the
> left. Can this be controlled?
ax1.yaxis.tick_right()
ax2.yaxis.tick_left()
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0
tical to
http://old.nabble.com/-matplotlib-problem-td3049.html
The poster there solved the problem by using a 32 bit version of
python. If that's not an option for you, please provide a more
detailed description of the problems you run into b
[1].
There were also similar issues reported with using GTK [2], which
I believe were addressed in [3], and are waiting to be merged.
1. https://github.com/ipython/ipython/issues/#issue/202
2. https://github.com/ipython/ipython/issues/#issue/185
3. https://github.com/ipython/ipython/pull/237
bes
ax = plt.subplot(1,1,1)
ax.errorbar?
# pyplot (matlab-like) interface
plt.errorbar?
As Daniel pointed out, the question mark will pull up the
docstring if you're using IPython, but if you aren't, you
can always call python's help.
help(plt.errorbar)
which will print the docstri
lot(1,1,1)
ax.plot(np.sin(np.linspace(0,np.pi)))
ax2 = ax.twinx()
ax2._sharey = ax # share both x and y
fmtr = mpl.ticker.FuncFormatter(lambda x,pos: "%.2f"%np.exp(x))
ax2.yaxis.set_major_formatter(fmtr)
plt.draw()
best,
--
Paul Ivanov
314 address only used for lists, off-list direct e
ions I feel capable of answering
on the mailing list, there is no need to send duplicates of
mailing list questions directly to me.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
12.5, 13.5, 14.5, 15.5,
16.5,
17.5, 18.5, 19.5]),
)
In [11]: ax.hist(a) # the default bins=10
(array([4, 2, 3, 1, 0, 2, 1, 2, 0, 5]),
array([ 0. , 1.9, 3.8, 5.7, 7.6, 9.5, 11.4, 13.3,
15.2,
17.1, 19. ]),
)
best,
--
Paul Ivanov
314 address only used for l
lines cause trouble
# even your mouse movements make my heart skip a bit!
cid = ax.figure.canvas.mpl_connect('idle_event', heartbeat)
print "ax.figure.canvas.mpl_disconnect(%d)" %cid
print "#run the line above to 'flatline' (stop heartbeat)"
plt.show()
estore_region along with the blitting -- see the
animation examples for how to do that.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
---
sing
the figure, with a WX backend, the f.canvas object changes
to an instance of , and loses
all of its usual methods. For GTK - looks like f.canvas.window
gets set to None.
So if you're only targeting one backend, there might be some
simple way like this to find out if a figure is being sh
ly engaged users, mailing list participants,
etc. Our collective involvement in whatever capacity is what
makes projects like matplotlib thrive!
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
u'll have to
either force 32 bit mode, or install matplotlib from source (i
don't there are python2.7 64 bit version for OS X at this time)
more on how to do that in the comments of the top reply here:
http://stackoverflow.com/questions/3606964/no-matching-architecture-in-universal-wrapper
np.arange(10)
plt.step(x,x)
you might also want to play with step's "where" parameter for
slightly different behavior of where the transition between the
steps occurs.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/P
ues()]
ax.patch.set_linewidth(2)
ax.patch.set_edgecolor('red')
plt.draw()
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digi
['right'].set_visible(False)
ax1.spines['top'].set_visible(False)
ax1.spines['left'].set_color('red')
ax1.spines['bottom'].set_color('red')
#and so on for .set_linestyle, .set_linewidth
To hide the tickmarks that are right next to t
Francesco Montesano, on 2011-02-04 17:01, wrote:
> Dear all again,
>
> I've tried to play with it again, but I couldn't find a
> solution for the problem. For clarity I report an example of
> what each of the subplots looks like:
Hi Francesco,
thanks for the clarification, here are two ways to
From: Paul Ivanov
To: Francois Maltey
Cc:
cc:
Subject: Re: [Matplotlib-users] Is it possible to plot axes with arrows ?
Reply-To:
In-Reply-To: <4d496f84.7070...@nerim.fr>
X-PGP-Key: http://pirsquared.org/PaulIvanov0F3E28F7.asc
Francois Maltey, on 2011-02-02 15:51, wrote:
> Hell
Paul Ivanov, on 2011-02-01 17:14, wrote:
> Kris Kuhlman, on 2011-02-01 18:03, wrote:
> > I am trying to plot a large number of locations that need to be labeled.
> > Often the locations are quite clustered and the resulting text is
> > unreadable. I have been lookin
used to
implement such functionality:
http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://
Jeremy Conlin, on 2011-02-01 16:48, wrote:
> I'm trying to create a custom colormap used with pcolormesh, but the
> results seem inconsistent to me. I want the following colors
>
> -3 < x <= -2 - Black
> -2 < x <= -1 - Blue
> -1 < x <= 0 - Yellow
> 0 < x <= 1 - Green
> 1 < x
on fairly recent checkout of svn trunk, so it may be an
issue that was recently fixed.
one workaround would be to set the ylim after the call to yticks,
like this:
plt.ylim(3.5, -0.5)
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsqu
p.sin(x)
> > err = np.random.random(100)
> >
> > plt.errorbar(x,y, yerr=err, color='g',linestyle='None',xuplims=True)
> > plt.show()
Hi Francesco,
> > plt.errorbar(x,y, yerr=err, color='g',linestyle='None',xuplims=True)
I'm not sure w
;ll have to look at what QuadContourSet._contour_args
does internally to see what what x, y, z should be, and then
create a contour using
C = matplotlib.contour._cntr.Cntr(x,y,z)
and then for each level, do something like what
QuadContourSet._get_allsegs_and_allkinds does
C.trace(..)
best,
--
1 - 100 of 153 matches
Mail list logo