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
Hi Listers,
I recently installed matplotlib 0.99.1 hoping to use mplot3d. However, when
doing 'from mpl_toolkits.mplot3d import Axes3D' python itself crashes.
Reinstalling matplotlib 0.98.5 gets everything working fine, without mplot3d,
of course.
I am running Windows XP, python 2.5.2 and nu
Jeff,
Here's a quick snippet. I've looked at the test.py file provided with the
basemap examples. What I am unclear on are the different ways in which nx
and ny are defined. I would like to have this 'automatically' defined, based
solely on variables from my input object.. say for example a netcd
Thanks, Matthias,
Your code suggestion works. I was aware of xlim but must not have used
it correctly, before contacting matplotlib-users. I think I tried
set_xlim, but did not use the get_xlim function. With your code added,
the minor tick mark locations line up correctly too.
Thanks again
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
On Wed, Oct 7, 2009 at 12:12 PM, Jae-Joon Lee wrote:
> Jason,
>
> This is now fixed in the svn.
> Meanwhile, you may use the following workaround.
Great! Thanks for the help!
Jason
--
Come build with us! The BlackBerry
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__':
Hi Ann,
I'm not sure I understood correctly, but maybe it is useful to change the
xlimits slightly, e.g. datetime(1998,4,20,0) instead of (the default value in
this case) datetime(1998,4,20,1):
ax.set_xlim( date2num(datetime(1998,4,20,0)), ax.get_xlim()[1] )
> Also the minor tick marks do not
I am plotting time-series 1-minute cadence data for specific
multiple-day validation periods.
Sometimes the data have a gap between the start of the validation period
and the start of the data. Attached is a stand-alone Python script that
demonstrates the problem, along with the plot that the
Hi all,
What would be really useful for me, is to be able to hatch the area filled
using the fill_between() method, instead of using solid color. Does anybody
know if this is possible?
Thanks in advance,
Matt
--
Come build
Hi Everyone,
after trying every example I could find in the documentation, gallery
and online I thought let's give the mailing list a try.
I have an image displayed with imshow.
I would like to display the pixel coordinates on the left y and bottom
x axis and the physical coordinates (in arcsecond
14 matches
Mail list logo