While it is not possible to toggle the box off during the
initialization, you can turn it off after the legend is created.
leg = legend()
leg._drawFrame=False
public methods and initialization option will be added in the future release.
Regards,
-JJ
On Fri, Oct 2, 2009 at 2:02 PM, David
I just noticed that there IS a public method.
You may use
leg.draw_frame(False)
-JJ
On Fri, Oct 2, 2009 at 2:45 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
While it is not possible to toggle the box off during the
initialization, you can turn it off after the legend is created.
leg
help :)
Raphael
Jae-Joon Lee wrote:
Can you just reuse the ax1 for plotting? I guess that might be the easiest
way.
With imshow, the location of ax1 is determined at the drawing time,
therefore you need a way to adjust the location of ax2 after this
happens. Doing this manually requires
On Tue, Sep 29, 2009 at 12:53 AM, Christopher Barrington-Leigh
cpblpublic+nab...@gmail.com wrote:
Jae-Joon Lee wrote:
Hmm, I'm afraid that this only works if you use preview mode. I
haven't tested, but I guess it will fail without it. Check if
rcParams[text.latex.preview]==True.
Hm, I
Can you just reuse the ax1 for plotting? I guess that might be the easiest way.
With imshow, the location of ax1 is determined at the drawing time,
therefore you need a way to adjust the location of ax2 after this
happens. Doing this manually requires some internal knowledge of mpl.
If you use
Mike,
I think this maybe related with some changes in how alpha is set (this
happened sometime early this year I guess).
I think the issue here is, when the shadow patch is created, it sets
its facecolor with alpha=0.5., i.e., its _facecolor is something like
(r, g, b, 0.5). But, shadow._alpha =
On Wed, Sep 30, 2009 at 4:38 PM, Christopher Barrington-Leigh
cpblpublic+nab...@gmail.com wrote:
Jae-Joon Lee wrote:
This works if you use recent version of matplotlib with preview mode
on. Without the preview mode (or other similar ways to report the
dimension of the text from TeX side), I
subplot, the changes
are applied on all 3d subplots.
Thanks again,
q
On Mon, Sep 28, 2009 at 11:52:08PM -0400, Jae-Joon Lee wrote:
Try below instead of Axes3D. Obviously, 131 is the geometry
parameter for subplot command. You don't need to add ax to fig
since Axes3D do that by itself
On Mon, Sep 28, 2009 at 4:15 PM, Uri Laserson laser...@mit.edu wrote:
On Mon, Sep 28, 2009 at 16:03, Michael Droettboom md...@stsci.edu wrote:
If I understand correctly, the top and bottom of the box are in data
coordinates, the x-center of the box is in data coordinates, only the width
of the
I can confirm this with latest svn. I take a quick look at the code,
but couldn't figure where the stripping happens and I hope other
experts to step in.
While I think you're not using usetex mode, you may use tex's own
spacing command with usetex mode. Depending on your need, you may also
use
Hmm, I'm afraid that this only works if you use preview mode. I
haven't tested, but I guess it will fail without it. Check if
rcParams[text.latex.preview]==True.
-JJ
On Mon, Sep 28, 2009 at 6:26 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
You need an empty mbox at the end of line (\mbox
Could you possibly explain exactly what is going on and how this
structurally differs from the approach that Mike posted?
In Mike's code, he uses BboxTransformTo using the box he created in
display coords. So this takes a unit square and spits out the box
that I specify when I instantiate
The exception will go away if you explicitly use np.array as below.
box = np.array([[self.x, self.y1],
[self.x, self.y2]])
However, note that Mike's example has x-center at 0.
-JJ
On Mon, Sep 28, 2009 at 6:41 PM, Uri Laserson laser...@mit.edu wrote:
Hi Mike,
This
Try below instead of Axes3D. Obviously, 131 is the geometry
parameter for subplot command. You don't need to add ax to fig
since Axes3D do that by itself.
from matplotlib.axes import subplot_class_factory
Subplot3D = subplot_class_factory(Axes3D)
ax = Subplot3D(fig, 131)
This will show you the
-midnight
(sfm) fashion, whereas the top x-axis uses HH:MM:SS representation.
Initially written by Gokhan Sever with helps from Jae-Joon Lee.
Written: 2009-09-27
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.transforms as mtransforms
from
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar
The second argument is the heights of the bars, not the top coordinate.
-JJ
On Sun, Sep 27, 2009 at 11:29 AM, per freem perfr...@gmail.com wrote:
hi all,
i am trying to make a simple stacked bar graphs (just two
...@gmail.com wrote:
On Sat, Sep 26, 2009 at 11:14 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever gokhanse...@gmail.com
wrote:
To run the code, you have to get nasafile.py and add this into your
PYTHONPATH, later get dccn_plot.py
Here it is.
-JJ
On Sun, Sep 27, 2009 at 3:09 PM, Gökhan Sever gokhanse...@gmail.com wrote:
JJ,
Could you please re-attach the code? Apparently, it has been forgotten on
your reply.
Thanks.
On Sun, Sep 27, 2009 at 1:50 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
Here is the modified
, label='lab2')
# legend
leg = ax.legend(loc='upper left', numpoints=2, fancybox=True, shadow=True)
lines, labels = ax.get_legend_handles_labels()
# Enable picking on the legend lines
leglines=leg.get_lines()
for legline in leglines: legline.set_picker(5)
Jae-Joon Lee wrote:
On Wed
need to specify this in
some manual way when you create the filter.
Maybe the second approach that I mentioned might be more reasonable.
Regards,
-JJ
On Sun, Sep 27, 2009 at 2:25 AM, Gökhan Sever gokhanse...@gmail.com wrote:
On Sat, Sep 26, 2009 at 10:16 PM, Jae-Joon Lee lee.j.j
].major_ticklabels.set(rotation=30,
ha=left,
va=bottom)
While the AutoLocator seems to give too may ticks in my opinion, I
think this is as far as I can help.
Regards,
-JJ
On Sun, Sep 27, 2009 at 2:12 PM, Jae-Joon Lee
It seems that you're using an older version of matplotlib.
register_cmap is available in the current version of mpl, which is
0.99.1. And the example works fine.
While it is best if the documentation states which functionality
became available at which version, unfortunately it is not. If you
On Fri, Sep 25, 2009 at 8:53 AM, Leopold Stadler leopoldstad...@web.de wrote:
Is there some simple solution to draw a patch collection with no edges or to
set the edgecolor to the
facecolor? I believe that for single polygons the color = XY comand should
work.
While I believe that setting
On Fri, Sep 25, 2009 at 1:14 AM, Gökhan Sever gokhanse...@gmail.com wrote:
With twin and proper Affine2D transformation I could not make the secondary
y-axis data being shown on the figure.
Please post a simple, complete code that does not work.
Just saying it didn't work does not help.
I
As specified in the doc
http://matplotlib.sourceforge.net/api/axis_api.html?highlight=get_majorticklabels#matplotlib.axis.Axis.get_majorticklabels
it returns a list of Text instances. You may use
http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.text.Text.get_text
to retrieve
The gradient, in general, is not supported by matplotlib yet.
If you're only interested in raster format outputs (like png), I
think you can use agg_filter functionality (but you need svn version
of mpl).
Other wise, I guess your best bet is to divide you line into many
segments and color them
On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever gokhanse...@gmail.com wrote:
To run the code, you have to get nasafile.py and add this into your
PYTHONPATH, later get dccn_plot.py and
09_03_26_11_36_15.dmtccnc.combined.raw file. nasafile.py has the NasaFile
class to read this ascii file.
run
On Sat, Sep 26, 2009 at 11:41 PM, Phillip M. Feldman
pfeld...@verizon.net wrote:
Re. working on the documentation: I'd be happy to contribute. How do I edit
the docs?
While it is best to submit a patch against svn,
Try something like below (there may be better ways to iterate over
indices but the below is what I can think of now).
-JJ
idxy, idxx = np.indices(tmat.shape)
for ix, iy in zip(idxx.flat, idxy.flat):
text(ix-0.5, iy+0.5, %4.1f%tmat[iy, ix],
fontsize=12,color='b',name='serif')
On
On Mon, Sep 21, 2009 at 10:32 AM, Christian Meesters
meest...@imbie.uni-bonn.de wrote:
Hi,
I'm plotting 2D-ndarrays with pylab.pcolor(). The data contain masked
values and it can happen that entire rows or columns hold only masked
values. Is there a build-in way to omitted such rows/columns?
The example below will give you some idea where to start.
It uses twin function in axes_grid toolkit.
(also see
http://matplotlib.sourceforge.net/examples/axes_grid/parasite_simple2.html)
You may use twinx or twiny, but you need to make both x and y axis in
sync to each other (maybe using the
On Wed, Sep 23, 2009 at 3:27 PM, butterw butt...@gmail.com wrote:
Hi,
pickers work great to make matplotlib plots more interactive/general user
friendly.
On the subject of the legend_picker.py example, I was wondering if it was
possible to combine both a legend picker and a line picker in
On Sun, Sep 20, 2009 at 11:45 PM, bwgoudey bwgou...@gmail.com wrote:
I'm trying to draw a scatter plot where each point is a different colour and
is only a single pixel. Unfortunately at the minute, while I can change the
colour and size, I haven't been able to remove the edges of the markers
My guess is that the error happens when the matplotlib tries to format
the date ticklabels when the xlim is not correctly set, i.e., [0, 1]
in the example. But, I'm not sure what is the best approach here.
Werner, if there is nothing to draw (i,e, xlim is [0,1]), change the
xlim to some arbitrary
I don't think your approach will work in general.
When you move an axes from one figure to the other, you have to update
the transform attributes of all the artists, which, I think, could be
tricky to do for general cases.
On Thu, Sep 17, 2009 at 1:59 PM, jason-s...@creativetrax.com wrote:
On Thu, Sep 17, 2009 at 2:49 AM, Bala subramanian
bala.biophys...@gmail.com wrote:
Friends,
I have a matrix data and i used matshow() function to plot. The plot is
attached.
1) After plotting the data, i used xticks() function to change the x-axis
tick labels from x1 to x12 ( figure
This turned out to be a bug in the legend code. This is now fixed in
the maint. branch and the trunk.
Adam,
Do you want these vertical lines show up in the legend?
If not, the easiest workaround is to use some garbage label which
starts with _, i.e.,
vlines(3e10/6000e-8,1e-7,1e-4,linestyle='--',
Thanks for reporting the problem.
I can reproduce this error in the svn trunk.
My diagnosis is that this is because the clip mask is not correctly
set, i.e., the mask path is not properly flipped in the svg backend.
I was able to solve this particular problem using the attached patch.
But, i'm
rearrange the order of artists by setting the zorder.
As far as I am concerned, I can wait until matplotlib next release.
Just to clarify, the patch will be included in the 1.0 release, not
the maintenance release of 0.99 version.
Regards,
-JJ
Thanks,
Yann
On 09/08/2009 08:13 PM, Jae-Joon Lee
This is a bug in the axes_grid toolkit. As a matter of fact, gridlines
in rectlinear coordinate are not implemented yet.
Unfortunately, I don't see any easy workarounds.
You may use mpl's original axis artists, but some of the functionality
of axes_grid toolkit may be lost.
On Tue, Sep 8, 2009 at 11:51 AM, Yann
Goudardmatplotlib-us...@alleeduweb.eu wrote:
Hi,
I have the same behaviour with LocatableAxes. HostAxes, ParasiteAxes and
LocatableAxes depend on 'mpl_toolkits.axes_grid.axislines.Axes'. It must
be the matter origin.
Yes, and this was because I forgot to
On Mon, Sep 7, 2009 at 1:02 PM, tvat...@brygge.dk wrote:
Problem solved. The backend was set to Qt4Agg. Once set to TkAgg everything
works.
I don't get it but it works..
I think an explicit call of draw() in the interactive mode (e.g. with
ipython -pylab) should update the figure
I presume you're running that script in interactive shell?
Try draw() instead of show().
Regards,
-JJ
On Sun, Sep 6, 2009 at 3:06 PM, tvat...@brygge.dk wrote:
Hi all
with matplotlib 0.98.5.3 this script will draw new lines as the scrips is
running:
from pylab import *
x =
There are a few ways to improve the speed, which, I guess, will give
you factor of a few speed up.
If you need more than that, I guess matplotlib is not suitable for your purpose.
* try a simple interpolation method, eg. imshow(arr, interpolation=nearest)
* reduce the image size. Unless you have
I cannot reproduce this error.
And I'm not sure if this is a bug in matplotlib or ghostscript.
You may try to use different distiller.
pl.rc('ps', usedistiller=xpdf)
In my machine, both ghostscript and xpdf option works fine.
But my gs version is different than yours
GPL Ghostscript 8.61
In [162]: print $\beta$
eta$
In [163]: print r$\beta$
$\beta$
use the raw sting for math expression.
Regards,
-JJ
On Fri, Sep 4, 2009 at 12:06 PM, Nicolas
Chopinnicolas.cho...@bristol.ac.uk wrote:
Hi list,
when I do:
hist(randn(100)); xlabel('$\gamma$')
things work as expected.
However,
On Wed, Sep 2, 2009 at 11:41 AM, Sebastian Rhodesebrh...@googlemail.com wrote:
So I already figure out how to delete the last drawn line, but this is not a
very good solution. What I actually would need, is a selection which line
legend the users whats to remove from the graph (perfect would
You may use PyX for compositing two eps images. It is not a gui
application like inkscape.
But it is one of the best option I know for eps compositing.
http://pyx.sourceforge.net/manual/epsfile.html
Regards,
-JJ
On Tue, Sep 1, 2009 at 11:09 AM, jakobgjakobga...@hotmail.com wrote:
Hi there,
If you need to stick to eps, another option is to use rasterization
feature of the matplotlib itself. This way you can keep part of plot
in vector format (e.g., texts, lines, etc ) while rasterizing others.
Of course this solution only works if the quality of those being
rasterized is not very
I don't think there is a direct support for this in mpl and I guess
only way is to adjust the parameters of each ticks.
def set_ticks_both(axis):
ticks = list( axis.majorTicks ) # a copy
ticks.extend( axis.minorTicks )
for t in ticks:
t.tick1On = True # tick marker on left
On Wed, Aug 26, 2009 at 6:22 AM, German Ocampogeroca...@gmail.com wrote:
Hello
Are there some way to take out the gridlines from a surface in mplot3D
and get a smooth colour change?
I think surface plot does not draw any gridlines by default (linewidth
set to 0). Maybe you're referring the
Please, take your time and post a standalone code that reproduces
your problem so that others can actually test. Also, please describe
what results you have and why they are wrong.
On Tue, Aug 25, 2009 at 4:08 AM, Daniel
Platzmail.to.daniel.pl...@googlemail.com wrote:
I think you can just copy the axes_grid.inset_locator.py file and use
it after deleting a few lines of code that gives some ImportError.
However, here is a some related post.
http://www.nabble.com/embedding-figures-inside-another-%28coordinates%29-td22826126.html#a22832238
Just replace the
On Mon, Aug 24, 2009 at 1:14 PM, Thomas
Robitaillethomas.robitai...@gmail.com wrote:
Hi,
I'm interested in controlling how the cursor position appears at the bottom
of interactive windows.
I noticed that by default, it is the Formatter that gets called. However, in
my case, the displayed
On Mon, Aug 24, 2009 at 1:48 PM, Xavier Gnataxavier.gn...@gmail.com wrote:
Hi,
I have already asked about that but I'm back once again :)
The way I use matplotlib may be a corner case:
I'm often looking at large (4k x 4k) images and I do want to see the
pixels values moving the mouse over
What you need is to adjust the axes position of the colorbar at the
drawing time (because the axes position of the contour plot is
adjusted only during the drawing time).
You may do this by properly setting the axe_locator property of the axes.
If you're using mpl 0.99, axes_grid toolkit may be
On Thu, Aug 20, 2009 at 2:01 AM, Sameer Regmiregm...@gmail.com wrote:
We tried the method 1 but the result was a garbled mesh
Please describe what you did and why the result is wrong.
The method 1 with quadratic bezier curve should be most
straight-forward and easy thing to do. Calculating the
On Fri, Aug 21, 2009 at 10:01 AM, Scott
Sinclairscott.sinclair...@gmail.com wrote:
I just realized that I did not give the correct plot object when creating
the colorbar. Now it works perfectly to pass arguments by set_xticklabels().
However, another question just arose. To format the numbers
On Tue, Aug 18, 2009 at 1:53 PM, Alan G Isaacalan.is...@gmail.com wrote:
2. This is pretty fast. Would there be additional
speed gains to blitting, and if so, how would it
be done? (I'm just asking for clues, not a complete
example.)
Blitting will improve the performance when significant
I guess you're using 0.99?
Use spines instead.
for example,
gca().spines[bottom].set_linewidth(2) # it only changes the
linewidth of the bottom spine.
also, see this example,
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html#pylab-examples-spine-placement-demo
On Tue, Aug 18, 2009 at 1:33 PM, dekdres...@hotmail.com wrote:
the patch3dcollection object not good for legend figure, I am having trouble
thinking of a work
around. Is there manually a way to insert artist and labels into the legend
and make it such that it is independent from the axes?
You need to adjust the positions of the ticks.
bar command (by default) creates boxes so that their left side
corresponds the first argument.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar
so, in your case, something like below will work (0.4 from 0.8/2 where
0.8 is
See below for available public methods.
http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.Collection
-JJ
On Tue, Aug 18, 2009 at 6:16 PM, Jae-Joon Leelee.j.j...@gmail.com wrote:
sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap))
colors =
On Mon, Aug 17, 2009 at 10:29 AM, Ole Streicherole-usenet-s...@gmx.net wrote:
Hi,
I want to show the same data on multiple plots. Is it possible to re-use
the Line2D object for that? t.m.,
line = axes1.plot(xdata, ydata, ...)
...
axes2.lines.append(line)
Or is a Line2D bound to a
I took a stab at this during the weekends and a patch is attached.
1) introduces a new command subplot2grid. e.g.,
subplot2grid(shape=(3,3), loc=(0,0), colspan=3)
it still creates a Subplot instance.
2) subplot command can take a SubplotSpec instance which is created
using the GridSpec.
gs =
Hello,
pywcsgrid2 is my personal project to display astronomical fits images
using matplotlib.
While there are other tools, my approach is to extend the capability
of the matplolib, rather than building something new on top of it.
pywcsgrid2 provides a custom Axes class (derived from the
get_tightbbox is a bit experimental feature and it is discouraged for
an ordinary user (maybe the method should not be an public method).
Unless you understand how the internal transformation thing works, I'm
afraid there is not much thing you can do with its return value.
Instead, you should use
On Wed, Aug 12, 2009 at 3:16 PM, Uri Lasersonlaser...@mit.edu wrote:
Hi,
I am trying to overlay a few Axes object that need to share axes. I would
like it to be the case that if I change the properties of one axis (e.g.,
scale), the corresponding axis of the other axes will have the
http://matplotlib.sourceforge.net/search.html?q=set_label_positioncheck_keywords=yesarea=default
ax2.xaxis.set_label_position(top)
ax2.yaxis.set_label_position(right)
Regards,
-JJ
On Thu, Aug 13, 2009 at 12:10 AM, Duncan Mortimerdmo...@gmail.com wrote:
Hi all,
I'm trying to produce a graph
John,
I changed the axes_grid examples to use get_sample_data and committed
them to the svn yesterday.
However, these examples won't work unless the user uses mpl from the
svn (I don't think get_sample_data is in 0.99 maint).
But, at some point during the last dev cycle, I think the gallery in
The guide is based on mpl 0.99.
You may upgrade your mpl,
or take a look at the thread below. it is a workaround that will work
with older version.
-JJ
On Fri, Aug 7, 2009 at 8:29 PM, Eliezer, Daviddelie...@knight.com wrote:
Hi,
I am graphing several time series together on the same
of 30 FPS if I redraw both X and Y axis. The rate goes much higher
( greater than 100 FPS) if I don't redraw the axis.
Thanks,
Christophe
-Original Message-
From: Jae-Joon Lee [mailto:lee.j.j...@gmail.com]
Sent: 05 August 2009 03:36
To: Christophe Dupre
Cc: matplotlib-users
This turned out to be a bug introduced recently, which is now fixed in
the 0.99 maintenance branch.
The fix is not merged into the head yet. I tried svnmerge.py but it
gave some merge conflict. While the conflict seems rather trivial,
I'll leave it to others.
Meanwhile, you can explicitly give
that this fix missed the 0.99 release.
Thanks.
On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
This turned out to be a bug introduced recently, which is now fixed in
the 0.99 maintenance branch.
The fix is not merged into the head yet. I tried svnmerge.py
On Thu, Aug 6, 2009 at 1:13 PM, John Hunterjdh2...@gmail.com wrote:
On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Leelee.j.j...@gmail.com wrote:
This turned out to be a bug introduced recently, which is now fixed in
the 0.99 maintenance branch.
The fix is not merged into the head yet. I tried
parts of a graph with
an icon representing the reason it's interesting. Icons are for peaks,
trends, correlation, etc.
Thank you very much!
Bas
2009/7/30 Jae-Joon Lee lee.j.j...@gmail.com:
The location of the image can be set by specifying the extent
keyword, however, this is set in data
representing the reason it's interesting. Icons are for peaks,
trends, correlation, etc.
Thank you very much!
Bas
2009/7/30 Jae-Joon Lee lee.j.j...@gmail.com:
The location of the image can be set by specifying the extent
keyword, however, this is set in data coordinate.
figimage may be close
Use pylab's yticks command.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.yticks
Or Axes.set_yticklabels together with Axes.set_yticks.
http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_yticklabels
-JJ
On Fri, Jul 31, 2009 at 4:07 PM,
On Sat, Aug 1, 2009 at 5:04 PM, Andres Luhamaaandres.luha...@ut.ee wrote:
Thank You,
but now I have another little annoying issue. Besides clabel I add some
text manually to my plot with plt.text and sometimes the clabel and
plt.text overlap, and no matter in which order I plot them, the
Yes, using spines will be best in most situation.
The problem with using axes_grid toolkit is that some mpl commands
that changes the properties of the ticks and ticklabels do not work.
I think you may consider to use axes_grid if you want to keep both of
the bottom and top axis, which I guess
The axes_grid toolkit is recently added to the matplotlib, and you
need to have development version of matplotlib.
You may try the matplotlib 0.99rc1 released a few days ago
http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html
or you may try to install from the svn
The clable command returns a list of Text instances.
You need call set_bbox method for each of them.
tl = clabel(...)
for t in tl:
t.set_bbox(dict(fc=y))
For clabels, which are often rotated, it may better to use fancy box
style (the default bbox is not rotated even though the text is).
for the stable release, and the other for development
version? This seems to be one of the obvious solutions to me.
Regards,
-JJ
Tommy
On Aug 1, 2009, at 9:27 AM, Jae-Joon Lee wrote:
The axes_grid toolkit is recently added to the matplotlib, and you
need to have development version
The location of the image can be set by specifying the extent
keyword, however, this is set in data coordinate.
figimage may be close to what you want.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.figimage
As far as I know, there is no direct support in matplotlib to
I don't think there is any user-visible support for registering a
custom colormap.
However, it seems to me that adding the colormap to
matplotlib.cm.datad distionary is enough.
Note that the value need to be a dictionary of RGB specification, not
the actual colormap instance.
for example,
On Tue, Jul 28, 2009 at 9:11 AM, Roland Koeblerr.koeb...@yahoo.de wrote:
Hi,
I've got some performance problems with matplotlib, and would like to
ask if you know any way I can make it faster.
If there is no such way, I have to decide to (a) either enhance matplotlib
or (b) write my own
scatter() currently does not support arbitrary path as its marker. The
current marker customization is limited to what can be described by
RegularPolyCollection and etc. And the crosshair marker do not fit in
to this category.
I'm attaching a snippet of a code I have been using for an exactly
The documentation for scatter command is out of date unfortunately.
You need to use scatterpoints keyword.
http://www.nabble.com/legend-bug--td22466216.html#a22466216
-JJ
On Mon, Jul 27, 2009 at 3:44 PM, per freemperfr...@gmail.com wrote:
Hi all
i am making a scatter plot and want to label
On Mon, Jul 27, 2009 at 11:55 AM, Tony S Yuton...@mit.edu wrote:
The 3rd issue is a bit more difficult. One approach is to use
Jae-Joon's AxesGrid toolkit; you
may need to be using the latest development version of matplotlib to use the toolkit.
I think it would be easier to use the recently
Well, I think the meaning of the axis(equal) is a bit misleading (at
least to me), but if you look at the documentation, it says that it
changes the xlimit and ylimit (limits in data coordinate), so this is
NOT what you want.
What you need is axis(scaled) or axis(image).
On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhamesgjha...@gmail.com wrote:
How to trim the canvas of the image generated? It's transparent, but still
have a padding, if it would be cropped, I can safe almost 200px!. I have
attached a file to this email to show it, the background of the graph was
The axes_grid toolkit is base on use cases for images of aspect 1, and
I haven't carefully considered cases where the aspect is different
from 1. And I guess this is one of such cases I overlooked.
Please try to add below lines in your code (I couldn't try your code
because of the missing data
Hi,
Thanks for reporting this.
The axes class in axes_grid toolkits uses different artists to render
ticks and ticklabels. And some of the features in the original
matplotlib won't work correctly, and the tick direction turned out
to be one of them.
However, I just committed a fix for this to
The height of the box will scale with the font size. If you want to
change the height independent of the font size, you need to manually
adjust the properties of the individual legend handles.
l = legend()
patches = l.get_patches() # list of legend handles whose type is
matplotlib.Patch.
for p in
get_xmajorticklabels() returns a list of matplotlib's Text objects,
not python strings.
http://matplotlib.sourceforge.net/api/axes_api.html?highlight=get_xmajorticklabels#matplotlib.axes.Axes.get_xmajorticklabels
On the other hand, set_xticklabels() takes a list of python strings.
index for subplot starts from 1, not 0 (the convention is from Matlab).
Regards,
-JJ
On Mon, Jul 20, 2009 at 6:31 PM, W. Augustine Dunn
IIIwadun...@gmail.com wrote:
Hello y'all:
I am trying to plot a fig with three subplots. However when I run my
script the subplots are all shifted way
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=legend#matplotlib.pyplot.legend
numpoints=1 is what you want.
For font size and etc, check the similar question posted a few days ago.
imshow sets aspect=1 unless you changed your rcparams.
Unless aspect=auto, the axes position changes during the drawing time.
call imshow with aspect=auto
or use set_aspect method.
http://matplotlib.sourceforge.net/api/axes_api.html?highlight=aspect#matplotlib.axes.Axes.set_aspect
Regards,
On Thu, Jul 16, 2009 at 10:49 PM, per freemperfr...@gmail.com wrote:
hi all,
suppose i have am plotting several lines using 'plot', some are dashed
(using '--') and some are ordinary solid lines. i am plotting several solid
and several dashed lines, all in different colors, as in:
for n in
To change the legend font size, you may change the legend.fontsize
in rcParams.
The change will be global. If you want to change the font size of some
particular legend, use the appropriate font property as the prop
keyword.
501 - 600 of 777 matches
Mail list logo