I do not have any access to mpl 0.98 so I cannot tell for sure. My guess is
that you have been using a feature that has not been intended, that has
fixed at some point. The first argument to legend should be a list of
artists. And pie2010 is a tuple of a list of patches and a list of texts,
i.e.,
ImageGrid creates axes for colobar even if cbar_mode=None. These axes for
colorbar are set to invisible, so usually they are harmless.
tight_layout, however, do not care whether the axes is visible or not, and
the warning is because of these invisible axes for colorbars.
For comparison, if you
You need to create a new handler. I guess the code below is close to what
you want. I hope this helps.
http://nbviewer.ipython.org/5495680
Regards,
-JJ
On Wed, May 1, 2013 at 5:24 AM, mgurling magurl...@gmail.com wrote:
I'm trying to make a legend handle that is half black and half
The code below uses axisartist toolkit.
http://nbviewer.ipython.org/5467593
This is modified from 3rd example from the below example.
http://matplotlib.org/examples/axes_grid/demo_floating_axes.html
I hope this helps.
Regards,
-JJ
On Tue, Apr 23, 2013 at 11:17 PM, Marian Jakubik
The anchored_artists needs improvements and things are still opaque.
For now you can do something like below,
```
a = AnchoredSizeBar(ax.transData, 0.1, test,
loc=8, pad=0.1, borderpad=0.1, sep=2, prop=None,
frameon=False)
rect = a.size_bar._children[0]
The first issue is a bug, and I opened a PR that fixes this.
https://github.com/matplotlib/matplotlib/pull/1864
In the comments of the PR, you can find a workaround.
Regards,
-JJ
On Wed, Mar 27, 2013 at 11:09 PM, Hackstein news.hackst...@gmx.net wrote:
Sterling,
I'm using matplotlib
It is not clear what your problem is.
AxesGrid implicitly assumes aspect=1 for each axes. So, I guess your
y-limits are smaller (in its span) than x-limits.
If you don't want this behavior, there is no need of using the AxesGrid.
Rather use Grid, or simply subplots.
import matplotlib.pyplot as
On Wed, Mar 13, 2013 at 2:17 AM, Andrew Dawson daw...@atm.ox.ac.uk wrote:
You should see that the circle is no longer circular, and also there are
weird line width issues. What I want it basically exactly like the attached
without_clipping.png but with paths inside the circle removed.
The
AxisArtist utilizes a different (compared to the vanilla matplotlib)
mechanism for determining tick location etc., so some of the
matplotlibcommands do not work.
Unfortunately, AxisArtist is still not well documented, and things are
often opaque. Below I implemented a method that you can use to
FancyArrowPatch behaves quite differently from normal patches.
Most importantly, the path must be reevaluated during the drawing time, so
a normal PatchCollection, which evaluate the paths during the instance
creation, won't work. i.e., you need a new Collection class.
Below is a very incomplete
On Wed, Jan 30, 2013 at 7:11 AM, Skipper Seabold jsseab...@gmail.comwrote:
Say I have a marker with a known size in points and I want to draw an
arrow to this point. How can I get the ends points for the arrow? As you
can see in the below, it overlaps the markers. I want to go to the edge. I
I agree with Eric that what we need is a backend that support CMYK color
space.
But matplotlib may need to provide some framework for handling the color
profiles etc.
My limited experience with ps_myck backend (
https://github.com/leejjoon/mpl_ps_cmyk) suggests that, as far as
matplotlib provide
I guess you have text.usetex=True?
In this case, the baselines are not correct unless you also set
text.latex.preview as True.
For example, try to add following line in your rc file.
text.latex.preview : True
(You also need preview.sty installed)
If this does not solve the problem, please post
The divider thing from axes_grid toolkit is primarily designed for a static
layout. So, it may become quite tricky when you want to adjust the layout
dynamically.
Here is a modified version your code that I think does what you want.
from matplotlib.figure import Figure
from
Yeah, that's what I feared. But in the mean time, are there any best
practices to minimize undesired effects like the one above? For example,
are there any other functions that need special parameters to not raster
their output when writing to a vector format? And is there a way to get
a
On Fri, Oct 12, 2012 at 3:39 AM, Nikolaus Rath nikol...@rath.org wrote:
matplotlib actually rescales the raw imshow data when saving to a vector
format? Why is that? I think it should embed the bitmap with full
resolution in the vector file and rely on the consumer of the vector
file to scale
to move the zoomed axis, but it does
nothing, no matter what two numbers I place there.
I guess that I miss something, but I can't figure out what. I really
appreciate your help.
Best regards,
Illa
2012/9/5 Jae-Joon Lee lee.j.j...@gmail.com
On Mon, Aug 20, 2012 at 10:50 PM, darkside
On Wed, Sep 5, 2012 at 6:05 AM, Sterling Smith smit...@fusion.gat.com wrote:
I still do not get black markers. Furthermore, if you try to make a new
legend with the result of leg.get_lines(), you will get lines without
markers, which leads me to the conclusion I stated in my previous email
I recommend you to use LineCollection as it is rasterized as a single image.
For example,
from matplotlib.collections import LineCollection
d = [np.array([ts[0], ys1]).T for ys1 in ys]
lc = LineCollection(d, color='r', lw=0.5, alpha=0.5,
rasterized=True)
On Mon, Aug 20, 2012 at 10:50 PM, darkside in.the.darks...@gmail.com wrote:
I am using zoomed_inset_axes, but the default position overlaps the yticks
and the parent axe ticks, so I am trying:
axins = zoomed_inset_axes(ax,
3,bbox_to_anchor(0.5,1),bbox_transform=ax.figure.transFigure, loc=2)
On Sun, Aug 19, 2012 at 3:41 PM, Peter Combs pcombs+...@gmail.com wrote:
It seems like draw()ing the text object will reset the size of the BBox...
Any idea how to fix this? At the moment, I'm experimenting with continually
drawing, polling the get_width() method, and when it's too small,
On Wed, Aug 29, 2012 at 4:52 PM, Eric Firing efir...@hawaii.edu wrote:
twinx and twiny probably will need to return SubplotBase
instances if their parent is a SubplotBase instance.
My take on this.
https://github.com/matplotlib/matplotlib/pull/1169
And, tight_layout seem to work okay with
I think it is me who put that code there. But I cannot recall why I did it.
I may have copied that behavior from other code, but cannot find which.
Yes, I agree that the current behavior is not very desirable.
So, anyone who have an idea how this should behave, please go ahead
and fix this.
Handling alpha can become very tricky with matplotlib.
The problem is not specific for legend thing, but how attribute of
patches are updated when the update_from method is called.
Here is an example.
from matplotlib.patches import Patch
pa1 = Patch(alpha=None, fc='none', ec='b')
pb1 =
zorders are only meaningful among objects in a same axes.
An easy workaround is to move the legend in ax1 to ax2.
ax2.add_artist(leg1)
ax1.legend = None
Regards,
-JJ
On Thu, Mar 22, 2012 at 10:13 PM, David Verelst david.vere...@gmail.com wrote:
Hi All,
I am plotting on two
Just to clarify, both arrowstyle='simple' and arrowstyle='-|' draw
arrows as patches. In your first example with arrowstyle='simple', the
arrow is drawn as filled patch without edges, i.e., linestyle is not
effective. arrowstyle=-| also uses a patch but no fill, only
stroke.
Regards,
-JJ
On
On Wed, Feb 22, 2012 at 12:10 AM, Yannick Copin
yannick.co...@laposte.net wrote:
after iterating with Michael A. Rawlins over my previous attempt to code a
Taylor diagram (see [1]), here's a new version of my code, along with an
example plot. Maybe it could make its way into the gallery as an
I wonder why the simple text command does not work for you? e.g.,
def add_center_text(ax):
ax.text(0.5, 0.9075, Centered Title, ha='center', va='center',
fontsize=18,
bbox=dict(boxstyle='round, pad=0.5, rounding_size=0.25', fc=white,
ec=k, lw=2),
One way to use images as a marker would be to use offsetbox module.
Here is an example adopted from
http://matplotlib.sourceforge.net/examples/pylab_examples/demo_annotation_box.html
Regards,
-JJ
import matplotlib.pyplot as plt
from matplotlib.offsetbox import OffsetImage, AnnotationBbox
from
Although this is quite an old post, one need to set the location again.
e.g.,
lh._loc = 2
Regards,
-JJ
On Wed, Dec 14, 2011 at 12:09 AM, Warren Weckesser
warren.weckes...@enthought.com wrote:
On Mon, Dec 12, 2011 at 7:05 PM, C Barrington-Leigh cpblpub...@gmail.com
wrote:
Oops; I just
tight_layout only works for instances of Subplots. However, ax2, which
is created by calling twinx, is an instance of Axes, and is not
accounted by the tight_layout command.It may be possible to improve
the situation, I doubt it would be easy as the association between ax1
and ax2 is not very
As far as I can see, this is a bug of matplolib, although calling a
set_data work around this. Can you open a bug report in our github repo?
-JJ
2012. 2. 18. 오후 10:12에 Ray Osborn rosb...@anl.gov님이 작성:
You're exactly right. That does fix it. Unfortunately, it means I have to
refactor some of
What can be done with the current Matplotlib is to use the offset boxes.
Here is a modified version of a code snippet from
http://abitofpythonabitofastronomy.blogspot.com/2009/05/mpl-multicolor-text.html
Regards,
-JJ
from matplotlib.offsetbox import HPacker, TextArea, AnnotationBbox
f =
size.
I also attached the two PNG files generated with Agg and Cairo backends.
On Sun, Feb 5, 2012 at 6:45 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
How are you plotting your points.
If you use *plot*, there is a *markersize* parameter.
If you use *scatter*, the third argument controls
On Sat, Feb 4, 2012 at 1:27 AM, Saurav Pathak sau...@sas.upenn.edu wrote:
Is there another way to do this more efficiently?
I recommend you to use LineCollection, which should be much efficient.
http://matplotlib.sourceforge.net/examples/api/collections_demo.html
Regards,
-JJ
For the legend to be picked by mouse, it must be placed in the top most axes.
ax = subplot(111)
l1, = ax.plot([1,3,2])
ax2 = ax.twinx()
lab = ax2.legend([l1], [test])
I hope this clarifies your issue.
If not, please post a simple but complete example that demonstrates
your problem.
Regards,
How are you plotting your points.
If you use *plot*, there is a *markersize* parameter.
If you use *scatter*, the third argument controls the marker size.
But you may actually complaining about other issues, e.g.,
antialiasing, etc. So, if above are not your answer, please post a
complete
I believe the matplotlib package in ubuntu 10.4 is v0.99.1, which does
not include axes_grid1.
You need to install newer version of matplotlib.
Regards,
-JJ
On Mon, Jan 30, 2012 at 3:58 AM, BG barterguy8675...@gmail.com wrote:
Hello all,
I'm new to using Matplotlib. I am on Ubuntu 10.4,
As far as I know, No, there is no such way inside matplotlib that does
that for you.
But, in theory, it should not be very difficult to implement.
Can you open a new issue on our github page?
Regards,
-JJ
On Thu, Jan 12, 2012 at 4:16 AM, Craig the Demolishor
destrooo...@gmail.com wrote:
Hi,
I know this is an old post, but just in case.
For arrowstyle=-, they are just lines (well, not exactly as a
matter of fact). So, what you need is to change their linewidths. You
may do
arrow1=pylab.annotate(, xytext=(0.1,0.1),
xy=(0.9,0.9),fontsize=8,
Please post a complete (but simple) example that we can easily test.
Doing the *subplot_adjust* will mess up the location of colorbars, but
I believe that colorbars should be still there.
If you're using v1.1 and later, see if using the use_gridspec
parameter works. For example,
On Fri, Jan 6, 2012 at 4:56 AM, Skipper Seabold jsseab...@gmail.com wrote:
but when I call show, it seems the width of
the box is reset.
Yes. Because the location of the texts are backend-dependent, the
location of the xbox surrounding the text are recalculated during the
drawing time. I don't
I just opened a pull request that implements the requested feature.
https://github.com/matplotlib/matplotlib/pull/655
If you're familiar with Git, please test it and see if it works for your need.
I believe I will merge this PR to the master branch in a few days
unless there is any objection.
I just pushed a change that I believe fixes this problem
https://github.com/matplotlib/matplotlib/commit/96caca8dd48d08e3106337ecdeae82fa0236b86b
Required change is very minor, so you may apply the patch by yourself.
If you need a workaround, let me know.
Regards,
-JJ
On Tue, Dec 6, 2011 at
Can you post an standalone example?
Maybe you want to set the *annotation_clip* parameter to False?
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate
Regards,
-JJ
On Fri, Dec 2, 2011 at 10:19 PM, Neal Becker ndbeck...@gmail.com wrote:
Using
On Mon, Nov 28, 2011 at 10:49 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
This is a bug. In the current implementation, annotate has a
side-effect that modifies the arrowprops dictionary.
For a future reference, this should now be fixed in the v1.1.x branch
which also has been merged
On Mon, Nov 28, 2011 at 9:39 PM, Markus Baden markus.ba...@gmail.com wrote:
anno_args = {
'annotation_clip': False,
'arrowprops': dict(arrowstyle='-', relpos=(0, 1)),
}
plt.annotate('Good relpos', (3, 3), xytext = (3, 2), **anno_args)
plt.annotate('Bad relpos', (6, 6), xytext =
Try something like this.
ax = subplot(111)
LabelsList = ['Prospero', 'Miranda', 'Caliban', 'Ariel']
ax.set_xticks(range(len(LabelsList)))xlabels = ax.set_xticklabels(
LabelsList, rotation=35,
horizontalalignment='right',
fontstyle='italic', fontsize='10')
ticklabels =
This seems to be a bug that need to be fixed.
Meanwhile, use locator parameter as below.
cbar = grid.cbar_axes[0].colorbar(im, locator=ticks)
Regards,
-JJ
On Thu, Nov 17, 2011 at 5:35 AM, Yoshi Rokuko yo...@rokuko.net wrote:
does someone knows how to specify ticks for a colorbar
inside
I believe I fixed this in this pull request.
https://github.com/matplotlib/matplotlib/pull/566
Unfortunately, I don't think there is a easy workaround other than not
using the fancy arrow style.
Regards,
-JJ
On Sun, Oct 30, 2011 at 1:51 PM, Brendan Barnwell brenb...@brenbarn.net wrote:
Somehow, Figure.legend flattens the given handle list and this is the
cause of the problem.
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/figure.py#L994
Does anyone know why this is necessary?
I just filed a pull request to remove this.
On Sun, Oct 16, 2011 at 1:55 PM, C M cmpyt...@gmail.com wrote:
However, I can't get it to work correct with Figure. I'm either getting
that same error or failure to adjust the Figure's size to accommodate the
axes' labels. I attach a minimal runnable sample that demonstrates these
problems
On Mon, Oct 17, 2011 at 1:03 AM, C M cmpyt...@gmail.com wrote:
- Error if I call self.panel.Layout() before I call tight_layout().
In my system, I don't see any error whether ` self.panel.Layout() is in or not.
- If I don't do this, no error, but it still isn't doing a proper tight
layout.
Figure.tight_layout() is a correct way.
Do you see that error only when you use Figure.tight_plot (and not
when you use plt.tight_layout)?
What happen you try the script below.
import matplotlib.pyplot as plt
fig = plt.figure(1)ax = fig.add_subplot(111)fig.tight_layout()
Regards,
-JJ
On Sat,
On Wed, Oct 5, 2011 at 11:50 AM, mdekauwe mdeka...@gmail.com wrote:
Still haven't worked out the bold but I am sure there will be something on
that page
Try
ax.axis[bottom].label.set_text(Test)
ax.axis[bottom].label.set_weight(bold)
IHTH,
-JJ
On Tue, Oct 4, 2011 at 4:22 AM, Christopher Brown c...@asu.edu wrote:
tick.label1.set_color('red')
You should use tick.label2, not tick.label1.
tick.label2.set_color('red')
Anyhow, as Eric said, it is strongly advised to use the tick_params method.
-JJ
On Wed, Sep 28, 2011 at 3:32 PM, Klonuo Umom klo...@gmail.com wrote:
How to deal with this, without manually positioning legends and if possible
including all annotated plot lines in one legend?
*twinx* creates a new axes. Thus there are TWO axes, and you need to
do some manual adjustment. I
On Thu, Sep 15, 2011 at 10:33 PM, Jonathan Slavin
jsla...@cfa.harvard.edu wrote:
I'm wondering if there is some way to do cross hatching as a way to fill
contours rather than colors (using contourf). The only references to
cross hatching I see in the documentation are for patches type objects.
Thanks for reporting this.
I opened a pull request that I believe fixes this problem.
https://github.com/matplotlib/matplotlib/pull/472
Please test this if you can.
Depending on your need, you may work around this by calling all the
set_position method always after all the GridSpec.update call.
Thanks for reporting this.
This is now fixed in the v1.0.x-maint branch and the master branch.
Regards,
-JJ
On Sat, Sep 17, 2011 at 10:33 AM, Daniel Hyams dhy...@gmail.com wrote:
In http://matplotlib.sourceforge.net/users/annotations_guide.html ,
about 1/3 of the way down, there is a little
On Sat, Sep 17, 2011 at 6:10 AM, John Ladasky
john_lada...@sbcglobal.net wrote:
But that isn't my goal here. I want to add lines to the FIGURE, outside
of any Axes. Does anyone know how to accomplish this? Thanks!
Not sure what you mean here.
Adding a patch to an axes does not mean it cannot
Thanks for reporting this.
This is now fixed in the v1.0.x-maint branch and in the master branch.
Regards,
-JJ
On Fri, Sep 16, 2011 at 9:43 AM, Daniel Hyams dhy...@gmail.com wrote:
There seems to be a problem with the draggable annotation code when
the annotation is just clicked, and not
On Thu, Sep 15, 2011 at 5:08 AM, Youngung Jeong
youngung.je...@gmail.com wrote:
But it only gives one axis added to 'fig.axes'.
Is there any work-around? Or am I missing some other feature of matplotlib?
Somehow, this is not clearly documented for the subplot command.
You need to use label
On Thu, Sep 15, 2011 at 6:18 AM, Benjamin Root ben.r...@ou.edu wrote:
There are some ways to do this, but I haven't tried them myself.
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/axislines.html
Ben Root
You may better stick to the subplot with polar projection if your
On Thu, Sep 15, 2011 at 5:08 AM, Youngung Jeong
youngung.je...@gmail.com wrote:
but since contour function does not plot on the polar coordinate system
I think this is not True, but I may misunderstood you. Can you post an
example that does not work? Here is a simple example that shows it
does
On Mon, Sep 12, 2011 at 3:20 AM, Daniel Hyams dhy...@gmail.com wrote:
I would suggest the following modification to Annotation.draw in
text.py. All it does is set a clip box so that the annotation and
arrow is still drawn, but the arrow is clipped at the axes boundary.
It is a much nicer
Just in case, here is a version with axes_grid1 toolkit. Note that
axes_grid is kind of deprecated.
Regards,
-JJ
import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.axes_grid1 as axes_grid1
host = axes_grid1.host_subplot(111)
hplt, = host.plot(np.random.rand(100))
from
On Sun, Sep 11, 2011 at 10:16 PM, Neal Becker ndbeck...@gmail.com wrote:
Yes, that's very helpful. Just one thing. How would I get a bit more bottom
margin on the main figure to leave more room for the extra axis?
I'm using this as an example. I experimented with plt.subplots_adjust, which
On Wed, Sep 7, 2011 at 12:09 AM, Jeffrey Spencer jeffspenc...@gmail.com wrote:
Can I specify horizontal or vertical clipping?? Or what is the best way to
get around this?
my understanding is that the clipping is done with a closed path. so
I don't think one can do such thing as horizontal
On Wed, Sep 7, 2011 at 12:47 AM, Jeffrey Blackburne
jblackbu...@alum.mit.edu wrote:
It would be nice to have. Since the patch edge seemed to be using a round
style and I wanted miter, my workaround was just to use a separate step
plot to overlay the outline. But for more general cases (e.g.,
, and figure.figsize. I am using matplotlib
1.0.1.
Thanks for your help,
- Original Message -
From: Jae-Joon Lee lee.j.j...@gmail.com
To: R. O'Gara ronog...@yahoo.com
Cc: matplotlib-users@lists.sourceforge.net
matplotlib-users@lists.sourceforge.net
Sent: Monday, August 22, 2011
l = legend()
l.get_title().set_fontproperties(...)
-JJ
On Thu, Sep 1, 2011 at 6:48 AM, Alan G Isaac alan.is...@gmail.com wrote:
How can I change font properties of a legend title?
Thanks,
Alan Isaac
--
Special
On Thu, Sep 1, 2011 at 7:21 AM, Alan G Isaac alan.is...@gmail.com wrote:
On 8/31/2011 5:48 PM, Alan G Isaac wrote:
How can I change font properties of a legend title?
Related question: would it be a reasonable suggestion for
Legend.set_title to take a ``prop`` argument?
Alan Isaac
Can you
If you don't care about the aspect ratio at all, you can use
aspect=auto. Check the thread below.
http://old.nabble.com/Re%3A-Can-I-change-pixel-aspect-with-axes_grid-p32300471.html
Regards,
-JJ
On Sat, Aug 13, 2011 at 5:01 AM, R. O'Gara ronog...@yahoo.com wrote:
Hi,
From the attached
Can you post an simple self-contained script that reproduces your problem?
I just tried something similar but could not reproduces your problem.
Here is what I did,
Also, what version of matplotlb are you using?
Regards,
-JJ
import matplotlib.pyplot as plt
import numpy as np
from
On Thu, Aug 18, 2011 at 5:53 PM, mogliii mogl...@gmx.net wrote:
2) I want to make a shared y-axis label. I found this page:
http://www.scipy.org/Cookbook/Matplotlib/Multiple_Subplots_with_One_Axis_Label
But any additional axis I put before the gridspec axis is not shown in
the end. Is there a
You may use a proxy artist.
http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist
for example,
from matplotlib.lines import Line2D
l1 = Line2D([], [], linewidth=3, color=r)
l2 = Line2D([], [], linewidth=3, color=g)
l3 = Line2D([], [], linewidth=3, color=b)
legend([l1,
If you want aspect=auto, this must also be set when you create ImageGrid.
A simple example is attached.
If you want a fixed aspect other than 1, it is doable but gets a bit
tricky. Let me know if this is what you want.
Regards,
-JJ
from mpl_toolkits.axes_grid1 import ImageGrid
fig =
mathtext becomes invisible in the
pdf.
Jon
On Wed, 2011-08-17 at 14:09 +0900, Jae-Joon Lee wrote:
Can you post an output eps file so that we can take a look?
Regards,
-JJ
On Wed, Aug 17, 2011 at 5:52 AM, Jonathan Slavin
jsla...@cfa.harvard.edu wrote:
Hi all,
I've been making
On Fri, Aug 19, 2011 at 1:29 AM, mogliii mogl...@gmx.net wrote:
Looking back I must say that
http://matplotlib.sourceforge.net/api/gridspec_api.html#matplotlib.gridspec.GridSpecBase
is not very helpful. And it is very counter-intuitive to the Axes
dimension specification with location lower
Can you post an output eps file so that we can take a look?
Regards,
-JJ
On Wed, Aug 17, 2011 at 5:52 AM, Jonathan Slavin
jsla...@cfa.harvard.edu wrote:
Hi all,
I've been making figures for a paper I'm writing (to be submitted to the
ApJ). I'm using LaTeX and so need to use encapsulated
There are a few options you can try. And I recommend you to use gridspec module.
http://matplotlib.sourceforge.net/users/gridspec.html
It can also be used with ImageGrid (at least in the master branch, but
not sure for 1.0.1 release).
I'm attaching a sample script.
Regards,
-JJ
On Sat, Aug
I just installed the fr_FR locale and tested your patch, and I don't
see any problem.
I suspect that this is the problem of Axes3D (that has recently fixed
by Ben), and has nothing with your patch.
If I revert Ben's commit, than an error is raised regardless of the
value of
On Fri, Aug 5, 2011 at 4:22 AM, Paul Blelloch paul.blell...@ata-e.com wrote:
title = 'Overlap'
Did you mean to do
title(Overlap)
?
And yes it works as expected.
If it does not work for you, please post a simple but complete example.
-JJ
There could be a few ways. What I recommend as a matter of fact is to
use other method to draw gridlines. On the other hand, given that you
have a working example, it could be better to have different axis to
draw ticklabels in locations where you want. Here is a diff.
Regards,
-JJ
***
On Tue, Jun 14, 2011 at 4:58 AM, Nicholas Devenish
misnomer+matplot...@gmail.com wrote:
Is there a way I can avoid or correct this behaviour? It certainly
seems erroneous that using the figure GUI to adjust plot bounds
doesn't work, and is an especially nice way of tweaking for final
plots.
The first argument of the label command is a list of artist to be
labeled. And it does not matter whether they are associated with axes
or not. What you can do, therefore, is
1) draw something as you want them in the legend
2) remove them from the axes
3) make a legend from these artists.
Using AxesGrid does not mean that color scales are shared. It only
takes care of axes placement. And it is your responsibility to sync
colorbars of multiple images.
One option is to use *norm* attribute of images.
norm = matplotlib.colors.Normalize()
for i in range(3):
im =
I'm not 100% sure on this but it seems that this is a limitation of
psfrag that the ps backend relies on. The ps backend first produces
an eps file without TeX labels, and these TeX labels are put on the
eps file with latex+psfrag. And it seems these TeX labels are always
above the contents of
Just in case, I have opened a git issue on this.
https://github.com/matplotlib/matplotlib/issues/131
-JJ
On Wed, Jun 1, 2011 at 1:23 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
I'm not 100% sure on this but it seems that this is a limitation of
psfrag that the ps backend relies on. The ps
Attached is a modified version of Tony's script.
* no drawing is necessary
* support subplots that span multiple rows/columns
Please test it and let me know of any problem.
I'm planning to push these functionality into matplolib after some
refactoring (e.g., it would be good to have
On Wed, May 11, 2011 at 5:03 PM, Daniel Mader
danielstefanma...@googlemail.com wrote:
Hi Jae-Loon,
thanks for your comments! Of course I do agree that a figure layout
should not change in interactive mode. However, I don't see why this
should happen upon a panning action. A different case is
On Thu, May 12, 2011 at 2:37 AM, Brendan Barnwell brenb...@brenbarn.net wrote:
One thing I've always wondered: is it fundamentally impossible to change the
fact that, in matplotlib, you cannot know how big a drawn object will be
until you actually draw it?
Well, I don't think this is 100%
On Thu, May 12, 2011 at 2:59 AM, Benjamin Root ben.r...@ou.edu wrote:
Most things, we do know the sizes of. It is my understanding that it is the
text objects that is the unknown. If this could be solved, then a layout
engine would be much more feasible.
I doubt it. As far as I know, the
Yes, this is a bug that has been fixed.
https://github.com/matplotlib/matplotlib/commit/76851eb
Regards,
-JJ
On Thu, May 12, 2011 at 7:53 AM, Goyo goyod...@gmail.com wrote:
2011/5/12 David Andrews irbda...@gmail.com:
Hi,
I've come across something I don't entirely understand in the
On Thu, May 12, 2011 at 7:18 AM, David Andrews irbda...@gmail.com wrote:
I'm quite interested in getting involved with mpl development, partly
as a way to get my head around python numpy and aid porting a bunch
of stuff I use over to python from IDL. Unless I'm doing something
totally wrong
On Fri, May 6, 2011 at 5:20 PM, Daniel Mader
danielstefanma...@googlemail.com wrote:
From many postings here I have learned that
this is the absolute intention, i.e. it is broken by design unless the
programmer takes care about this.
I think there are pros and cons, and I don't think the
The Axes class of the axisartist toolkit uses very different way to
handle ticks and tick labels. Thus most of the tick-related commands
of original matplotlib do not work!
Unfortunately, there is no easy way to support a logarithmic scale.
To utilize the full functionality, you need to create a
On Tue, Apr 12, 2011 at 3:31 AM, Jonathan Slavin
jsla...@cfa.harvard.edu wrote:
(Shouldn't the default behavior
be to scale to height if the colorbar is vertical and width if its
horizontal?)
Because of the design of the matplotlib, this is not straight forward
to implement.
While there could
This seems to be a bug in matplotlib.
I just opened a bug track for it.
https://github.com/matplotlib/matplotlib/issues/88
As a workaround, try
ax3.tick_params(pad=20)
Regards,
-JJ
On Tue, Mar 15, 2011 at 10:43 AM, NotBrianCox samwisehawk...@gmail.com wrote:
I'm plotting a series of sub
1 - 100 of 777 matches
Mail list logo