It is possible but not so fancy.
Regards,
-JJ
clf()
ax1= subplot(111)
ax2= ax1.twiny()
ax2.set_xlim(0,10)
def report_ax1ax2(x2, y2):
# x2, y2 : data coordinate in ax2
xy_pixel = ax2.transData.transform_point((x2,y2))
x1, y1 = ax1.transData.inverted().transform_point(xy_pixel)
re
On Tue, Oct 13, 2009 at 4:53 PM, Laurent Dufréchou
wrote:
> (still your gtk example is more beautiful but 10 times slower than other
> examples, so is blitting really working in this case ?)
What example do you mean?
The performance will depend on complexity of the plot items that need
to be dra
wx and QT4 backend.
>> The two are buggy.
>> Easy way to reproduce the bug (another way I mean)
>>
>> ax = p.subplot(212)
>> ax2 = p.subplot(211)
>>
>> and the two backends got the same error.
>>
>> Note that I'm under windows. I'll
t reproduces the bug. Also
the error message you get.
-JJ
>
> Note that I'm under windows. I'll try under linux tonight just to check.
> I'll also try gtk backend as you suggest.
>
> Update in next email :)
>
>> -Message d'origine-
>> De :
If what you want is just to hide some axis, I (as a developer of
axes_grid toolkit) strongly recommend you to stick with the mainline
matplotlib. You can easily do it with spines.
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html
axes_grid toolkit uses different
I haven't tested it with qt4, but with gtk, add_axes DOES work.
So, can you try other backends and see if they work?
And, I believe that add_subplot -> add_axes is a only change you made?
Unless the problem is persistent among other backends, I hope other
developers who use qt4 backend step in a
On Mon, Oct 12, 2009 at 11:45 AM, Ernest Adrogué wrote:
> hi,
>
> is there a way to put a label every two o three ticks,
> instead of putting it on every tick?
I personally think it is best to use major ticks with labels and minor
ticks w/o labels.
>
> the following works but it's a little cumbe
On Tue, Oct 13, 2009 at 2:52 AM, Georg Brandl wrote:
> BTW, from Gnuplot I missed the ability to press "q" to close a figure window
> and wrote a custom key handler to do that; would it make sense to add that
> by default?
gui and event handling is not my field, but as far as it is easily
customi
On Tue, Oct 13, 2009 at 2:48 AM, thkoe002 wrote:
>
> Hi Eric,
>
> thanks for the help, but this doesn't do what I want.
> I don't want to change the image in any way, I just want the axes to have a
> decreasing spacing. I made a small example with ms paint to clarify.
>
> http://www.nabble.com/fil
On Fri, Oct 9, 2009 at 10:55 AM, Georg Brandl wrote:
> Hi,
>
> I want to make a plot with ordinary subplots, each of which has a
> second axes set created with twinx(). Now, the second axes are
> always drawn over the first, but I want the "main" data, which is
> associated with the left Y axis,
First of all, I recommend you to use spines instead of SubplotZero of
axes_grid toolkit.
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html
If you use axes_grid toolkit, keep in mind that some axis-related
command of matplotlib may not work. Please take a look at
axes_grid is included in matplotlib (at least from version 0.99),
i.e., if you have installed 0.99, you already have axes_grid toolkit.
Also, in svn, source for axes_grid toolkits can be found under lib/mpl_toolkits.
Regards,
-JJ
On Thu, Oct 8, 2009 at 11:51 AM, william ratcliff
wrote:
> Hi,
I'm not an axes3d expert and below is from my quick at the code, so
there may be better ways.
axes3d have w_[xyz]axis attributes, which are responsible for drawing
tick, ticklables, and you need to change these to change ticks, etc.
While, I think something like w_xaxis.set_ticks should work, curr
It seems that there is no support of hatching in Collection, although
I don't see any reason.
I think the easiest way for now is to create extra patch objects for hatching.
Try something like below.
-JJ
p = ax1.fill_between(x, 0, y1)
p.set_facecolors("none")
from matplotlib.patches import PathPa
As far as I know, there is no easy way to do that with mpl (especially
when image is involved).
You may manually add ticks and ticklabels (but without using set_ticks, etc).
If you're using 0.99 and later, you may use axes_grid toolkit, but it
has some cons. So, if you're going to use it, please r
Text instances have "get_window_extent" method. However, it requires a
renderer instance (because the size of the text depends on the
backend), i.e., the size of the text is only known during the drawing
time.
The easiest ways is to call get_window_extent without any argument,
but after figure is
moving around artists form one axes to the other can be very tricky
due to the underlying design of mpl. So, it is generally better idea
to create artists for each axes, instead of reusing them.
For a simple case as yours, adding the following line after
line.remove() will work.
line._transformSe
Jason,
This is now fixed in the svn.
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/patches.py?r1=7840&r2=7857
Meanwhile, you may use the following workaround.
import matplotlib
import pylab
from matplotlib.path import Path
if __name__ == '__main__':
On Tue, Oct 6, 2009 at 2:24 PM, Jae-Joon Lee wrote:
> 2) f is somehow not flushed when savefig returns (which should happen
> if file gets deleted).
I meant if the variable "f" gets dereferenced.
-JJ
--
wrong in mpl's side. We may try to explicitly flush (or
close) the file after write_png, though.
I hope someone who is more knowledgeable than me take a look at this.
Meanwhile, I'll change the code to explicitly close the opened file.
Regards,
-JJ
On Tue, Oct 6, 2009 at 1:44 PM, wro
I think this has nothing to do with dpi, but a file flushing issue.
Try something like below with sage (note that the code does not work
with svn version of matplotlib, i'll commit the fix soon).
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig=plt.figure()
plt.plot([1,2
On Mon, Oct 5, 2009 at 10:25 PM, wrote:
> Jae-Joon Lee wrote:
>>
>> As one of who never used Sage, I don't think I'll be any help here.
>> Anyhow, can you tell us what kind of backed is used by default in the
>> two environment? I mean the type of th
with hold=False, the axes is reset whenever something new is added to
the axes. Instead of using pylab.hold(False), clear the figure or axes
explicitly (clf() or cla())
-JJ
On Mon, Oct 5, 2009 at 9:58 PM, Ross Anderson wrote:
> Hi all,
>
> I'm making multiple semilogy histograms, which for now
I just want to mention that axes size in mpl, by design, is supposed
to be proportional to the figure size, so there could be cases when a
fixed-sized axes messes up something. Furthermore, using axes_grid
toolkit can be a bit tricky, so I (as an author of the axes_grid
toolkit) personally do no re
use "extent" argument.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow
-JJ
On Fri, Oct 2, 2009 at 7:21 PM, shamster wrote:
>
> My current plot takes data to construct a 2d histogram. In gnuplot i would
> accomplish this by using splot, dgrid3d, and pulling in a '
MPL, by default, does not do any clipping. So, i'm not sure why the
extent of the circle matters (I think even the bbox_inches option does
not take care of that) . Everything should be fine as far as you
create a figure in an appropriate size. Changing the suplotplot
parameters (or something simila
Please take a look at the backend_gtk.py if you're going to customize
the toolbar.
fig.canvas.toolbar is derived from gtk.Toolbar. So, you can customize
it as you do for any gtk.Toolbar.
I guess something like below is similar to DeleteToolByPos in wx. I
just grabbed it by doing dir on the toolba
Unfortunately, there is no simple way, as MPL does not support gradient yet.
There is a hard way though, that you create a gradient image by
yourself and clip it with the appropriate path.
I guess, the easiest way for a normal user is to export the figure as
the SVG format and put some gradient usi
As one of who never used Sage, I don't think I'll be any help here.
Anyhow, can you tell us what kind of backed is used by default in the
two environment? I mean the type of the canvas that is initially
created.
It seems to be some dpi issue, but MPL supposed to handle this correctly.
I guess it a
http://matplotlib.sourceforge.net/examples/pylab_examples/barchart_demo.html
While the example uses "text", "annotate" is more useful for
fine-tuning the location of texts.
-JJ
On Fri, Oct 2, 2009 at 8:26 AM, marcog wrote:
>
> Hi there
>
> I am plotting a bar graph and would like to label the
What you need to do is to share a normalizer among different surface
plots (this is not just for surface plot, but for all (as far as I
know) color representation that uses colormaps). Note that "norm" can
also be a keyword argument.
Regards,
-JJ
Z1 = 5*np.sin(R)
s1 = ax.plot_surface(X, Y, Z1,
et the correct data limits by using
> axins1.set_ylim( ymiin= ... , ymax= ...).
>
> Thanks again for your help :)
>
> Raphael
>
>
>
> Jae-Joon Lee wrote:
>>
>> Can you just reuse the ax1 for plotting? I guess that might be the easiest
>> way.
>>
&
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 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 = le
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 Ward
On Fri, Oct 2, 2009 at 11:52 AM, Jae-Joon Lee wrote:
> The attachment is missing.
My bad. There IS an attachment. Again, this is bug is already fixed in svn.
Also, If you can, please post a diff file which makes the job a lot easier.
Regards,
On Wed, Sep 30, 2009 at 4:38 PM, Christopher Barrington-Leigh
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 t
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 =
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 0.
On Tue, Sep 29, 2009 at 12:53 AM, Christopher Barrington-Leigh
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["
/zoom (with the mouse) in one 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 com
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 yo
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 wrote:
> Hi Mike,
>
> This is definitely
>
> 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 instan
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 wrote:
> You need an empty mbox at the end of line (\mbo
mode.
Regards,
-JJ
On Mon, Sep 28, 2009 at 5:48 PM, Christopher Barrington-Leigh
wrote:
>
> All my attempts at using TeX spacing failed too. What do you have in mind?
>
> e.g.
> text(xlim()[1],1.02,r'$r^\;2$~~~',horizontalalignment='right')
>
>
> Jae-
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 the
On Mon, Sep 28, 2009 at 4:15 PM, Uri Laserson wrote:
> On Mon, Sep 28, 2009 at 16:03, Michael Droettboom 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 box is in axes coordinat
ar as I can help.
Regards,
-JJ
> On Sun, Sep 27, 2009 at 2:12 PM, Jae-Joon Lee wrote:
>>
>> Here it is.
>>
>> -JJ
>>
>> On Sun, Sep 27, 2009 at 3:09 PM, Gökhan Sever
>> wrote:
>> > JJ,
>> >
>> > Could you please re
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 wrote:
>
>
> On Sat, Sep 26, 2009 at 10:16 PM, Jae-Joon Lee wrote:
>>
>
'ro', picker=5, label='lab1')
> ax.plot(t, y2, 'bo', picker=5, label='lab2')
>
> # legend
> leg = ax.legend(loc='upper left', numpoints=2, fancybox=True, shadow=True)
> lines, labels = ax.get_legend_handles_labels()
>
> # Enabl
Here it is.
-JJ
On Sun, Sep 27, 2009 at 3:09 PM, Gökhan Sever 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 wrote:
>>
>> Here is the modi
Gökhan Sever wrote:
>
>
> On Sat, Sep 26, 2009 at 11:14 PM, Jae-Joon Lee wrote:
>>
>> On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever
>> wrote:
>> > To run the code, you have to get nasafile.py and add this into your
>> > PYTHONPATH, later get
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 wrote:
> hi all,
>
> i am trying to make a simple stacked bar graphs (just two layers) and
> am ge
t; doesn't remedy the situation as of yet.
>
> All comments are welcome.
>
> ### BEGIN CODE ###
> #!/usr/bin/env python
>
> """
>
> Double time representation. Bottom x-axis shows time in
> seconds-from-midnight
> (sfm) fashion, whereas the
On Mon, Sep 21, 2009 at 10:32 AM, Christian Meesters
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? Currently
> I'm removi
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 T
On Sat, Sep 26, 2009 at 11:41 PM, Phillip M. Feldman
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,
http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=contribute#contribute-to-matplotli
On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever 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 as ./dccn_plot.p
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 dif
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
On Fri, Sep 25, 2009 at 1:14 AM, Gökhan Sever 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 think the following ch
On Fri, Sep 25, 2009 at 8:53 AM, Leopold Stadler 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 linewidth=0 will
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
want
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 "xl
On Wed, Sep 23, 2009 at 3:27 PM, butterw 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 the same p
On Sun, Sep 20, 2009 at 11:45 PM, bwgoudey 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 and
> my single
On Thu, Sep 17, 2009 at 2:49 AM, Bala subramanian
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 attached). Similarly I wan
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, wrote:
> I'm trying to draw the axes f
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
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 not
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/200
On Tue, Sep 8, 2009 at 11:51 AM, Yann
Goudard 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 implement some necessary
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.
host.toggle_axisli
On Mon, Sep 7, 2009 at 1:02 PM, tva 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 canvas imm
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 (2007
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 hav
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, tva wrote:
>
> Hi all
>
> with matplotlib 0.98.5.3 this script will draw new lines as the scrips is
> running:
>
> from pylab import *
> x = arange(0,2*pi,0.01)
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
Chopin wrote:
> Hi list,
> when I do:
> hist(randn(100)); xlabel('$\gamma$')
> things work as expected.
> However, if I try:
> hist(ra
On Wed, Sep 2, 2009 at 11:41 AM, Sebastian Rhode 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 be
> interactivly dir
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, jakobg wrote:
>
> Hi there,
>
> I want to place a
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 im
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 (or
On Wed, Aug 26, 2009 at 6:22 AM, German Ocampo 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 artifacts betwe
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
Platz wrote:
> fig1.colorbar(pc1,ax=ax1,orientation='horizontal',pad=0.025,
On Mon, Aug 24, 2009 at 1:48 PM, Xavier Gnata 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 the display.
> im
On Mon, Aug 24, 2009 at 1:14 PM, Thomas
Robitaille 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 coordinates each depe
Marsh
> Graduate Research Assistant
> School of Meteorology
> University of Oklahoma
> http://www.patricktmarsh.com
>
>
>
>
> On Sat, Aug 22, 2009 at 10:37 PM, Jae-Joon Lee wrote:
>> What you need is to adjust the axes position of the colorbar at the
>> draw
On Thu, Aug 20, 2009 at 2:01 AM, Sameer Regmi 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 control points
is
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 he
On Fri, Aug 21, 2009 at 10:01 AM, Scott
Sinclair 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 the tick
>> label
On Mon, Aug 17, 2009 at 10:29 AM, Ole Streicher 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 certain axes inst
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 Lee wrote:
> sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap))
> colors = sct1.get_face
sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap))
colors = sct1.get_facecolors()
The return value is an array of rgb values.
-JJ
On Mon, Aug 17, 2009 at 3:40 PM, Carlos
Grohmann wrote:
> Hi, I have a collection, which is a scatter plot, and I want to
> iterate through all the ele
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 t
On Tue, Aug 18, 2009 at 1:33 PM, dek 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? Using a proxy arti
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-dem
On Tue, Aug 18, 2009 at 1:53 PM, Alan G Isaac 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 portion of your
plo
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 matplotl
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 = G
501 - 600 of 847 matches
Mail list logo