I just saw in the code:
if event.key is None: # simulate backspace
So it works properly,
Mark
On 6/5/07, Mark Bakker <[EMAIL PROTECTED]> wrote:
I notice the alignment problem.
But it looks like you are close.
On my machine (win32), the 'enter' key didn't work either. It w
Hello -
This used to work:
fill( [0,1,1], [0,0,1], '#66')
But it doesn't work anymore under 0.90.1.
I thought it still worked under 0.90.0
Anybody see the same problem?
Plot seems to have the same problem:
plot([1,2,3],'#af')
Error message for the plot statement:
Traceback (most recent
I know for a fact that it used to work for fill( [0,1,1], [0,0,1],
'#66').
But maybe I was just lucky.
It would be nice if you can make the change officially,
Mark
On 6/7/07, Eric Firing <[EMAIL PROTECTED]> wrote:
Mark Bakker wrote:
> Hello -
>
> This used to work
Hello -
I tried to turn of the feature that makes contours with negative values
dashed.
According to the mailinglist this should go by setting: rcParams['
contour.negative_linestyle']=('None','None')
I tried any combination of the None, None syntax, or just 'solid', but
nothing worked.
Example sh
so the
change I made in svn is to use the strings "solid" and "dashed"; the
two-float specification is deprecated.
Eric
Mark Bakker wrote:
> Hello -
>
> I tried to turn of the feature that makes contours with negative values
> dashed.
> According to the mailingl
Viraj and Jeff -
Maybe one extension of Jeff's answer.
The process works as long as x, y, and z are 2D arrays of the same size and
shape.
Hence, x and y don't have to form a rectangular grid.
I have used this feature regularly for conformal mapping.
And it makes a lot of sense.
The contour routin
on) of
a regular rectangular grid is fine. The fact that the grid's 'pixels' are
four sided quadrilaterals satisfies this condition and the contour algorithm
works...
Cheers,
Scott
>>> "Mark Bakker" <[EMAIL PROTECTED]> 7/11/2007 11:36 >>>
Viraj and J
Hello, I never noticed the 'annotate' option in pylab.
I have been trying unsuccesfully to get it to work.
I am working in interactive mode and get the following error.
Thanks for any help, Mark
plot([1,2,3])
annotate( 'Mark', (1,2), (1,2.5) )
Traceback (most recent call last):
File "", li
Hello all -
I am trying to plot two images side byside.
The problem is that I get a white line between them.
Even when the extent of the two images are exactly next to eachother.
Does anybody know how to get rid of the white line?
Here's an easy example:
from pylab import *
a = ones((10,10))
imsh
ring <[EMAIL PROTECTED]> wrote:
>
> Mark,
>
> What backend? I don't see it when I run your lines in ipython -pylab,
> with gtkagg in use (linux).
>
> Have you tried using floating point extents and fudging them very
> slightly to overlap?
>
> Eric
>
> M
s odd.
Still would like to know what interpolation option you used.
Thanks,
Mark
On 8/21/07, Mark Bakker <[EMAIL PROTECTED]> wrote:
>
> I use TkAgg on win32, and saw the line on screen and in png and eps files.
> I tried nudging it, but that didn't work either.
> So I tried the
Maybe this will get you going:
import pylab as p
import datetime as d
from matplotlib.dates import DateFormatter
t = [ d.datetime (2007,9,1,12), d.datetime(2007,9,2,12),
d.datetime(2007,9,3,12)
]
t = p.date2num(t)
p.plot_date( t, [10,20,30] )
p.xticks(t)
y = DateFormatter('%Y-%m-%d')
p.gca().xaxis
y apps or not. I am not doing
> scientific plots, just fairly simple graphs, though I may throw some
> regression lines and r values on there at some point.
>
> I really just want to keep things as simple as possible, and if I don't
> need to use pylab, I'd rather not. Any
I think LABELPAD is the padding between the label and the tick.
What I would like to control is the distance between the label and the
y-axis itself.
This is desired when you do multiple subplots and you want all ylabels to
align nicely; they may differ
depending on the numbers along the yticks.
A
Hello -
I got confused about specifying colors and linewidths for LineCollections.
I think it would be helpful if the docstrings explicitly state that they
should be sequences.
I know, they do in some way, but it i
Maybe we should even check this on input, as the error message you get when
you don
Erik -
You write that adding a 'save' is difficult.
I can see it is involved, but don't quite see how it is specifically difficult.
The way I see it, every item that is added to a figure needs a method
to write itself to a file. So you loop through all lines, polygons,
and such, and write them to
Arnar -
I presume you are using Tk.
This is a known bug under Tk, that is apparently difficult to solve.
John Hunter looked into it a year back or so, but couldn't find help
from Tk experts that may know the solution.
Oddly enough, I have written my own GUI in Tk, where I modified the
toolbar, and
>
> Arnar
>
> On Nov 23, 2007 9:00 PM, Mark Bakker <[EMAIL PROTECTED]> wrote:
> > Arnar -
> >
> > I presume you are using Tk.
> > This is a known bug under Tk, that is apparently difficult to solve.
> > John Hunter looked into it a year back or so, but
A question was posted a week or so ago on the scipy list about installing
Python/mpl/numpy/scipy/Ipython by David Arnold (both Windows and Mac). He
was interested in a simple install for students (and others that are less
computer-savy). We had a little off-list correspondence, but thought to
bring
Hello -
It seems that in the latest version (0.9.1) the location of the images, such
as home.ppm, has moved to a new directory.
It used to be in ...\mpl-data and now it is in ...\mpl-data\images
This totally breaks my code, as I use my own toolbar that uses these images,
with a hardcoded location
Michael -
This trick for replacing contour labels with a string was posted a little
while back (by someone else):*
*
class FormatFaker(object):
def __init__(self, str): self.str = str
def __mod__(self, stuff): return self.str
A=arange(100).reshape(10,10)
CS=contour(A,[50,])
CS.clabel(fmt=F
EMAIL PROTECTED]> wrote:
> I've seen this, but I'm not clever enough to see how to extend that to
> multiple levels - after all, I don't want to label every line with the same
> string...
> --Mike
> On Dec 14, 2007, at 3:20 PM, Mark Bakker wrote:
>
> Michael -
Rather than using eqnarray, I like to use the simple split:
\begin{equation}\begin{split}
&A=1 \\
&B=1
\end{split}\end{equation}
Although this may actually be part of the AMSMath package.
Mark
>
>
> --
>
> Message: 4
> Date: Thu, 17 Jan 2008 09:29:43 -0500
> From
Alan -
You started a discussion about dpi on the figures.
Yet here you claim that 1pt = 1/72 inch.
Is that always the case?
And why? How does mpl figure that out, if there are also different dpi
settings?
The plot thickens...
Mark
> Alan Isaac wrote:
> Note: 1pt = 1/72 inch
>
> hth,
> Alan Is
John -
My version of mpl (0.90.1) only has a function ax.xaxis.get_ticklocs(),
not ax.xaxis.get_majorticklocs().
New feature?
Mark
On Feb 2, 2008 10:27 PM, John Hunter wrote:
> Send Matplotlib-users mailing list submissions to
>matplotlib-users@lists.sourceforge.net
>
> To subscribe or un
On Feb 11, 2008 2:35 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> Before I look into this further: what version of mpl are you using?
>
I am using 0.91.2 using the win32 installer for Python 2.4.
Thanks for looking into this, Mark
--
Hello Heiko -
dir(graph) would at least have given you a list of the functions and
attributes, so you may have been able to spot the get_xlim function.
I use that a lot,
Mark
>
> --
>
> Date: Mon, 11 Feb 2008 14:14:03 +0100
> From: Slackenerny <[EMAIL PROTECTED]>
> S
Hello -
I have a hard time getting aspect_ratio to work correctly with sharex.
This used to work quite a while ago, and has been broken for a long time (or
at least I don't know how to get it to work)
But I finally found the time to put a simple example together to determine
if I do something wron
#x27;datalim')
print ax.get_xlim() # Prints 0 to 5 while datalimit is much larger
draw()
print ax.get_xlim() # Now datalimit is correct and sharex works
ax2 = subplot(212,sharex=ax)
draw()
On Feb 11, 2008 9:56 AM, Mark Bakker <[EMAIL PROTECTED]> wrote:
> Hello -
>
> I have a hard tim
Hello -
As reported in an earlier post, when setting aspect ratio, the axis limits
don't get updated correctly it seems. Or maybe I have to make another
function call. Very easy example:
from pylab import *
ax = subplot(211)
plot([1,2,3])
ax.set_aspect('equal',adjustable='datalim')
print ax.get_x
aybe someone
> else can answer -- is there a reason not to call apply_aspect() from
> set_aspect() besides a little extra computation? It obviously will
> still have to be called from draw (in case the figure size changes), but
> does it hurt to do it one extra time?
>
> Cheers,
>
As a workaround, can you just turn the axis box and ticks off?
xticks([])
yticks([])
setp(ax,'frame_on',False)
Or does that give the same problem?
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(
a shot. You
also don't have to set the backgroundcolor of your plot anymore.
Mark
On Tue, Feb 26, 2008 at 3:22 PM, Jochen Voss <[EMAIL PROTECTED]> wrote:
> Hi Mark,
>
> On Tue, Feb 26, 2008 at 11:30:55AM +0100, Mark Bakker wrote:
> > As a workaround, can you just turn
Hello -
I recently upgraded to 0.91.2, and export of mathtext to eps files seems
broken (at least with the default matplotlibrc file).
Figure looks great on the screen (interactive mode). Exporting to png still
works fine.
But writing to eps file, the greek symbols (I tried \theta and
\lambda) d
Hello -
I am trying this again. I recently upgraded to 0.91.2, and export of
mathtext to eps files seems broken (at least with the default matplotlibrc
file).
Figure looks great on the screen (interactive mode). Exporting to png still
works fine.
But writing to eps file, the greek symbols (I tr
Not sure, but do you just mean:
Point-specific colors with scatter
scatter([0,1,1,0],[0,0,1,1],10,'y',edgecolor='y')
Gives yellow points with size 10 color yellow.
Mark
-
This SF.net email is sponsored by: Microsoft
Defy al
mathtext.fontset setting, try using stix or cm:
> mathtext.fontset: cm
>
> best wishes, bernhard
>
>
>
> On Fri, Mar 14, 2008 at 2:15 PM, Mark Bakker <[EMAIL PROTECTED]> wrote:
>
> > Hello -
> >
> > I am trying this again. I recently upgraded to 0.91.
3 (Type3) or Type 42
> > > (TrueType)
> > > pdf.fonttype : 3 # Output Type 3 (Type3) or Type 42
> > > (TrueType)
> > >
> > > this includes the missing symbols into the ps/pdf file, if you choose
> > > type 42 the complete font wil
Just upgraded to Ghostview 4.9 with Ghostscript 8.61, but it still doesn't
work.
Does anybody see greek symbols in eps files with mpl 0.92.1?
Mark
On Tue, Mar 18, 2008 at 5:07 PM, Mark Bakker <[EMAIL PROTECTED]> wrote:
> Hello Bernhard -
>
> When I set the fonttype to 4
Hello Mike -
Thanks for taking a look at this.
Easy example:
from pylab import *
plot([1,2,3])
text(1,1.5,r'$\chi$')
savefig('d:/temp/test.eps')
There shoud now be a line and the symbol chi.
Works great in the pdf file, not in the eps file.
Both are attached.
Strangely enough at the end of the
d or print to file), edit the ps file
> to be a eps by changing the header to %!PS-Adobe-2.0 EPSF-2.0 and make
> sure the bounding box is specified (see
> http://www.postscript.org/FAQs/language/node82.html for details)
>
> Bernhard
>
>
> On Wed, Mar 19, 2008 at 10:22 AM, Mark Bak
d with 0.91.2, the cm fonts are not included, which I
think is causing the problem.
What happens when you guys read the attached eps file (created with commands
above)?
Do you see the chi symbol on the screen?
Thanks for looking into this,
Mark
On Wed, Mar 19, 2008 at 2:18 PM, John Hunter <
sions
0.90.1and earlier.
Sorry for the bad news.
Anybody know how to fix this?
Thanks, Mark
On Sun, Mar 23, 2008 at 5:02 PM, Mark Bakker <[EMAIL PROTECTED]> wrote:
> Hello windows users -
>
> Can anybody using mpl 0.91.2 on windows reproduce this bug:
>
> from pylab import *
Well, that is odd.
The *chi* letter doesn't show up with GSView, or Preview on the Mac.
What's going on?
Mark
On Tue, Mar 25, 2008 at 3:19 PM, Jim Vickroy <[EMAIL PROTECTED]> wrote:
> Mark Bakker wrote:
>
> Thanks to Fred, Chris, and JV for reproducing this bug.
>
I know. In version 0.90.1 (and earlier) all greek symbols were included in
the EPS.
Now they are not anymore, and I cannot get any of the options to include
them.
Does anybody know how to fix this?
Mark
>
> Date: Tue, 25 Mar 2008 10:43:43 -0400
> From: Alan G Isaac <[EMAIL PROTECTED]>
> Subject:
John -
What you are saying makes sense, because whatever option I give, I always
get Vera included in my eps file but nothing else.
Thanks for looking into this,
Mark
On Tue, Mar 25, 2008 at 6:50 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> On Tue, Mar 25, 2008 at 12:02 PM, Michael Droettboom
I am following up on the discussion of passing a single 2D array to plot.Wouldn't it make more sense that, in Python array style, if you give it a single N x K argument you plot rows against the first row?
On the same token, it would be really nice if contour, pcolor and imagetake as an x and y arg
Eric -
To be honest, I think the native array storage order matters a lot.
When you have a large dataset, transposing the matrix is not a cheap command.
But I also understand the logic of plotting column against column.
However, a 1D vector in Python is by default a row, while in Matlab it is a
You are right, concerning your comment below.That will work just fine,MarkOn 7/13/06, Eric Firing <[EMAIL PROTECTED]
> wrote:But why is this better than the following?plot(Z[0,:], Z[1:,:])
The latter would accomplish the same, be completely consistent withoption 4, be completely explicit and unambi
What I don't understand is why we need previews at all?Is this because Microsoft software cannot display an eps file?Why not? Isn't that one of the easiest drivers to write?Are they not adding eps format out of spite?
MarkFrom: "Theodore R Drain" <
[EMAIL PROTECTED]>Subject: Re: [Matplotlib-users]
Hello -In interactive mode it is sometimes useful to make a figure that is a full screen size.Is there such an option ?If not, I am afraid it needs to be implemented for every backend separately
Thanks, Mark
-
Take Surveys.
So is it just capital F, or Control F or so?I'll look into Tk,But no promises,MarkOn 10/6/06, John Hunter <
[EMAIL PROTECTED]> wrote:>>>>> "Mark" == Mark Bakker <
[EMAIL PROTECTED]> writes:Mark> Hello - In interactive mode it is sometimes useful to
Hello -
We seem to be very close to nirvana, with numpy1.0 being out.
It is just waiting for a win32 installer for scipy that is compatible with
numpy1.0.
(DOES ANYBODY KNOW? IS TRAVIS READING THIS MAYBE?)
In the meantime, is there an mpl win32 installer around for numpy1.0rc2?
Thanks for the h
101 - 153 of 153 matches
Mail list logo