Sorry if this ultimately goes through more than once. I am having some
issues with submitting it
I need to teach coordinate systems and transformations to a college
robotics class. I have used Tikz in the past to generate some graphics,
but I want to switch to doing everything in matplotlib
gt;
> On 8/11/2010 7:26 AM, Ryan Krauss wrote:
>> 0.99.3 is more or less fine, but there is an annoying exception window
>> that pops up if you close IPython with a plot window open (using the
>> TkAgg backend). But in my mind this is less bothersome than having to
>>
generate 5-10 plots at a minimum).
If I could easily build an installer from svn, I would try it. I
don't have any microsoft compilers installed on my windows computers.
Thanks again,
Ryan
On Wed, Aug 11, 2010 at 9:09 AM, Ryan Krauss wrote:
> Thanks.
>
> I need to role out a python
Thanks.
I need to role out a python install for my students. Classes start in
a week and a half. What should I do? The installation for most of
them needs to be fairly simple.
Thanks,
Ryan
On Wed, Aug 11, 2010 at 2:25 AM, Eric Firing wrote:
> On 08/10/2010 05:43 PM, Ryan Krauss wrote:
&
#x27;numpy.ma.numpy', 'copy', 'numpy.core.re', 'socket', 'numpy.core.
fromnumeric', 'hashlib', 'numpy.ctypeslib', 'keyword', 'numpy.lib.scimath', 'num
py.fft', 'numpy.lib', 'numpy.rand
I just upgraded my windows machine to matplotlib 1.0.0 and a simple
script such as
from pylab import *
from scipy import *
t = arange(0,1,0.01)
y = sin(2*pi*t)
figure(1)
clf()
plot(t,y)
show()
Now halts execution when run from the ipython -pylab prompt. The same
commands typed at the commandl
RTFM:
plot(t,y, drawstyle='steps-post')
This was really helpful:
http://matplotlib.sourceforge.net/examples/pylab_examples/set_and_get.html
especially
>>> line, = plot([1,2,3])
>>> setp(line, linestyle='--')
On Fri, May 15, 2009 at 6:52 PM, Ryan Krauss
Oh, and in case it matters I am running
In [36]: matplotlib.__version__
Out[36]: '0.98.5.2'
on Ubuntu 9.04 (with the rather lame name of Jaunty Jackolope).
On Fri, May 15, 2009 at 6:51 PM, Ryan Krauss wrote:
> I think I used to use plot with linestyle='steps' to plo
I had emailed Ken and he said he intended to fix it. He didn't give me a
time line though.
Ryan
On Wed, Aug 27, 2008 at 9:30 PM, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> I had emailed Ken and he said he intended to fix it. He didn't give me a
> time line though.
>
&g
more elegant than
what you are currently doing with passing dpi into savefig.
FWIW,
Ryan
On Thu, Mar 27, 2008 at 1:57 PM, Christopher Barker
<[EMAIL PROTECTED]> wrote:
> Ryan Krauss wrote:
> > I think this line in the rc file is the trick
> >
> > #savefig.dpi : 10
I think this line in the rc file is the trick
#savefig.dpi : 100
On Wed, Mar 26, 2008 at 6:16 PM, Christopher Barker
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want to save a figure just like it is displayed i.e. the same dpi
> (wxAgg). However, the default Figure.savefig uses a different
Sorry, I meant PEBKAC.
On 3/26/08, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> Thanks for all the quick responses. Yes, it seems that WXAgg and
> usetex work fine together. So the problem was definitely on our end.
> KEBKAC.
>
> Thanks again,
>
>
> Ryan
>
Thanks for all the quick responses. Yes, it seems that WXAgg and
usetex work fine together. So the problem was definitely on our end.
KEBKAC.
Thanks again,
Ryan
On 3/26/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> "Ryan Krauss" <[EMAIL PROTECTED]> writes:
>
esday 26 March 2008 10:15:13 am Ryan Krauss wrote:
> > I need to help a friend install from source on Ubuntu Gutsy. What is
> > the easiest way to determine all dependencies and make sure he has all
> > the right dev packages? I suspect we want to install the WXAgg,
> >
I think I have correctly installed from source. I checked the
dependencies for USETEX and have the right versions for dvipng, gs,
latex, and pdftops. When trying to plot with text.usetex=True I get
Traceback (most recent call last)
/home/william/svn/matplotlib/ in ()
/usr/lib/python2.5/site
I need to help a friend install from source on Ubuntu Gutsy. What is
the easiest way to determine all dependencies and make sure he has all
the right dev packages? I suspect we want to install the WXAgg,
GTKAgg, TkAGG, and postscript backends.
Thanks,
Ryan
-
source for him. But my windows
building skills are not what they should be.
Ryan
On Dec 11, 2007 2:06 PM, Fernando Perez <[EMAIL PROTECTED]> wrote:
>
> On Dec 11, 2007 12:01 PM, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> > I am trying to help a student get started wit
Pretty sure it's a newer chip, but I will find out.
On Dec 11, 2007 2:06 PM, Fernando Perez <[EMAIL PROTECTED]> wrote:
>
> On Dec 11, 2007 12:01 PM, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> > I am trying to help a student get started with
> > Python/Scipy/Nump
I am trying to help a student get started with
Python/Scipy/Numpy/Matplotlib in windows. On one of his machines,
everything seems to install correctly, we can call figure(1) without a
problem, and plotting is fine until we try the show() command. Then
python crashes without much in the way of use
FYI, I see this same warning in another wxPython program of mine that
doesn't use mpl or wxmpl, so it seems like it is a wxPython issue.
Solutions are still welcome.
Ryan
On Nov 28, 2007 8:46 AM, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> I just created a small wxmpl example that
I just created a small wxmpl example that I really like (attached),
but when I run it, I get these error messages:
** (python:18091): WARNING **: Can't create printer "PDF" because the
id "PDF" is already used
(python:18091): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF
could not be crea
I may be jumping into this conversation way too late, but I really
like wxmpl. The one bell and whistle that I love is the
click-and-drag box zoom available by default. Attached is my hacked
together simple example of putting a wxmpl.PlotPanel on a wx.notebook.
Ryan
On Nov 27, 2007 11:06 AM, C
I have successfully (I think) coerced my students into using
Scipy/Numpy for signal processing and dynamic system modeling. They
are mechanical engineering coming from a Matlab background. In order
to make using Python easy and have it feel like Matlab, I teach them
to put
from scipy import *
f
usetex=true IS supported for eps. I use epstopdf to get pdf's from there.
Ryan
On 9/21/07, Jordan Atlas <[EMAIL PROTECTED]> wrote:
>
> >Do you have ghostscript installed? If you set verbose.level to debug or
> >debug-annoying, what do you get?
> >
> >
> >
>
> I realized that the ghostscript path
I think I have something I like reasonably well. Is that attached
timeline fairly intuitive? I am proposing a project for next summer
that has two main parts. Each part has three subsections that are
roughly one month long.
Thanks,
Ryan
On 9/20/07, Ryan Krauss <[EMAIL PROTECTED]> wrot
border is with
ax.set_frame_on(False)
which also gets rid of my bottom x axis and leaves tick marks along
the top (see attached). How do I get rid of the top tick marks, keep
the bottom ones, and get the bottom x-axis back?
Thanks,
Ryan
On 9/20/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
&
bling-bling. I know it is eye candy and in questionable taste, but I
think it fits my non-technical audience in this case. I think this is
enough to get me going. Thanks John.
Ryan
On 9/20/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 9/20/07, Ryan Krauss <[EMAIL PROTECTED]&g
I would need to create a timeline for a Latex document (eps output).
There may be other tools besides Matplotlib and I am open to
suggestions. But I were going to use mpl, what would it take to do
something along these lines:
http://www.timelinemaker.com/product-samplecharts-constructiontimeline.h
I think I was the one who asked a similar question a while back. Here
is a link to John's response:
http://article.gmane.org/gmane.comp.python.matplotlib.general/5465
I followed his advice and created my own formatter:
from matplotlib.ticker import LogFormatterMathtext
class MyFormatter(LogForm
It is probably overkill, but I use Latex for this. You can fairly
easily have Python generate a text file that is the Latex input,
including captions for each figure. And then call latex using
os.system.
This might get you a psmerge for windows:
http://gnuwin32.sourceforge.net/packages/psutils.h
This is admittedly a stupid question, but just to be sure, I don't see
usetex: True
in your post.
Ryan
On 8/7/07, Johan Ekh <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm new to Python in general and Matplotlib in particular.
> I'm trying to create publication quality plots for inclusion
> in LaTe
Sorry, forgot to copy the list.
On 6/27/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> I think what you are asking is how to make mpl plot different line
> types in colors and styles that are easily distinguishable when
> plotted in grayscale. I had tinkered with this a bit in the
There is a nice gnuplot python interface out there. Google for gnuplot.py
On 6/22/07, Stephan Bourduas <[EMAIL PROTECTED]> wrote:
> On June 20, 2007, Eric Firing wrote:
> > Unfortunately, the 3D plotting capability is incomplete and mostly
> > unmaintained.
>
> >
> > Orest Kozyar wrote:
> > > One
I would also highly recommend Ken McIvor's wxmpl:
http://agni.phys.iit.edu/~kmcivor/wxmpl/
It makes wxPython and mpl play very nicely together.
I have been involved in several threads recently about how no to
import pylab in data analysis libraries and when embedding in gui's.
You may find this t
figure, you have to do the involved:
> > >canvas = get_current_fig_manager().canvas
> > >canvas.figure = fig
> > >canvas.print_figure('myplot.png')
> and canvas.show() does not work at all. Much better would methods like:
> fig.print_figure
I am writing a final exam and I want my students to sketch a graph of
something and label the plot themselves. So, I need to create an axis
with x and y labels, but with no tick marks. This I can do, but
creating blank tick marks seems to get rid of the space where the
students would write in th
My CiSE article can be downloaded from here:
http://www.siue.edu/~rkrauss/python_stuff.html
Ryan
On 4/25/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 4/25/07, Fernando Perez <[EMAIL PROTECTED]> wrote:
> > Since authors are allowed by their publication policy to keep a
> > publicly available c
s the forder i get:
> >matplotlib-0.90.0
> >
> >Python 2.3.5 (#2, Sep 4 2005, 22:01:42)
> >[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
> >
> >
> > >From: "Ryan Krauss" <[EMAIL PROTECTED]>
> > >Reply-To: SciPy Users List <[EMAIL P
Thanks John. That will work.
Ryan
On 3/20/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 3/20/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> > I have a figure with 2 subplots (2 rows, 1 column) created using the
> > OO interface like this:
> >
>
I have a figure with 2 subplots (2 rows, 1 column) created using the
OO interface like this:
ax1=fig.add_subplot(2,1,1)
ax2=fig.add_subplot(2,1,2)
After I have created these axes and plotted things on them, I want to
be able to set their x and y lims. The function that creates the plot
returns f
used from the command line with
pylab and IPython and it can also be imported into a WX app (as
demonstrated by wx_compatible.py). So, I will edit my data processing
scripts to use this approach.
Thanks again,
Ryan
On 3/19/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
Sorry, I just googled
Sorry, I just googled wxmpl and found your page and am now downloading
it. I may have a more intelligent question momentarily. You may
ignore that part of my response.
Ryan
On 3/19/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> Thanks for your thoughts Ken. Sorry, I assumed a bit on th
ed on it.
Am I making any sense? Am I going about this revision in a good way?
Thanks,
Ryan
On 3/15/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> Thanks John. I know I have some clean up to do, I just want to do it
> right so it isn't an annual (or more often) thing
>
> On
Thanks for the help Ken. I think I got it. The source install of
libwkgtk2.6 doesn't seem to be enough (I still get the message about
accelerator needing the headers).
I have downloaded the 2.6 source tarball (thanks for finding it). I
copied *.h from the wxPython-src-2.6.3.3/wxPython/include/w
Thanks Ken. I think I did this before a year or so ago, I was just
thinking there was an easier way.
I guess I am a little stuck. I am hesitant to upgrade to wxPython 2.8
because wxGlade isn't compatible with it yet. I just went to
wxPython.org and their sourceforge page doesn't have 2.6 source
:
> Dear Ryan, I think you want libwxgtk2.6-dev
>
> Ryan Krauss wrote:
> > I am getting a message during a source install that WXAgg's
> > accelerator requires the wxPython headers. What do I need to do to
> > get them for Ubuntu? I think I have all wx packages
I am getting a message during a source install that WXAgg's
accelerator requires the wxPython headers. What do I need to do to
get them for Ubuntu? I think I have all wx packages installed? Do I
need to download the source tarball from wxPython.org? If so, where
should I put the headers?
Ryan
Thanks John. I know I have some clean up to do, I just want to do it
right so it isn't an annual (or more often) thing
On 3/15/07, John Hunter <[EMAIL PROTECTED]> wrote:
> On 3/15/07, Ryan Krauss <[EMAIL PROTECTED]> wrote:
>
> > How should I be using matplotlib/p
I have a problem that probably highlights a problem with how I
normally use mpl vs. how I should use it. I have some utility scripts
that do various data processing tasks and also have convenience
functions for plotting data using pylab. Almost all of my scripts
have a line like this near the top
I am using axes3d to draw wireframes with code like this:
from numpy import *
import pylab as p
import matplotlib.axes3d as p3
fig1 = figure(1)
ax1 = p3.Axes3D(fig1)
ax1.plot_wireframe(x,y,z)
When this gets done drawing, I can click and drag with my mouse to
rotate the figure. I would like to
I need to generate a drawing of a robot that is essentially a serial
connection of lines in 3D. I have been trying to use the recipe at
http://www.scipy.org/Cookbook/Matplotlib/mplot3D
This I think would work. The only drawback is that I would like to
adjust the thickness of the lines drawn. Tr
You have two options. savefig does have a dpi option that will
essentially set the figure size for the saved file:
savefig('myfile.png',dpi=300)
play with dpi until you get a figure size you like.
The other way to set the figure size is to specify it when you create
the figure:
figure(1,(10,8))
fonts. Maybe you need to go into your miktex
> > > package manager and make sure you have type1cm available on your system.
> > >
> > > Darren
> > >
> > > On Saturday 28 October 2006 12:25 am, Ryan Krauss wrote:
> > > > I am t
fically asks for type1 fonts. Maybe you need to go into your miktex
> package manager and make sure you have type1cm available on your system.
>
> Darren
>
>
> On Saturday 28 October 2006 12:25 am, Ryan Krauss wrote:
> > I am trying to use latex with matplolib on Windows
I am trying to use latex with matplolib on Windows XP with MikTex 2.5
and dvipng 1.8.
I am getting this warning:
dvipng warning: font cmsy10 at 512 dpi not found, characters will be left blank
when I do this:
t=arange(0,1,0.01)
y=sin(2*pi*t)
plot(t,y)
and this
ylabel('$y(t)$')
leads to
dvipng
If I change numerix to numarray, this goes away. Is anyone else out
there successfully running svn mpl with:
In [2]: numpy.__version__
Out[2]: '1.0rc1.dev3190'
In [3]: matplotlib.__version__
Out[3]: '0.87.5'
Thanks,
Ryan
On 9/19/06, Ryan Krauss <[EMAIL PROTECTED]>
I just upgraded matplotlib, numpy, scipy, and ipython to currect svn.
I am getting a segfault with pylab:
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import p
but Chris referred me to these:
http://euclid.uits.iupui.edu/mplfiles/
which work great. I am up and running in Windows.
Ryan
On 9/6/06, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> I am trying to install matplotlib on my office Windows computer. I
> have installed the following:
> pytho
I am trying to install matplotlib on my office Windows computer. I
have installed the following:
python-2.4.3.msi
numpy-1.0b5.win32-py2.4.exe
scipy-0.5.1.win32-py2.4.exe
matplotlib-0.87.5.win32-py2.4.exe
on a completely fresh install.
I am getting the following message:
H:\>python
Python 2.4.3 (
I have a similar problem because I use bigfonts. If you are going to
make a lot of these plots, you can change the default for left,
bottom, height, and width in your matplotlibrc file. Look for the
lines:
figure.subplot.left : 0.15 #0.125 # the left side of the subplots of
the figure
figure.s
Thanks John. The latest svn works beautifully for me now.
No more svn updates for me until my thesis is submitted.
Ryan
On 6/18/06, John Hunter <[EMAIL PROTECTED]> wrote:
> >>>>> "Ryan" == Ryan Krauss <[EMAIL PROTECTED]> writes:
>
> Ryan> I
I just did a fresh svn checkout and my legends are no longer in the
front. The following lines produce the attached plot:
t=arange(0,10,0.01)
y=sin(2*pi*5.0*t)
plot(t,y)
legend(['data'])
Ryan
legend_problem.png
Description: PNG image
___
Matplotlib-
ople should get decent results if
> > they set ps.useafm : True in their rc settings.
> >
> > Comments?
> >
> > On Wednesday 14 June 2006 19:53, Ryan Krauss wrote:
> > > (Sorry, I submitted this email with a real figure instead of a toy
> > > example a
Sorry, I didn't scroll down low enough in the message to see the png
you already attached.
Ryan
On 6/18/06, Ryan Krauss <[EMAIL PROTECTED]> wrote:
> Can you post a simple script that recreates your problem and a png of
> a plot with the problem? (Note that your png files
Can you post a simple script that recreates your problem and a png of
a plot with the problem? (Note that your png files need to be under
100kb or the mailing list won't allow them).
Ryan
On 6/18/06, Steve Schmerler <[EMAIL PROTECTED]> wrote:
> With usetex mpl creates different fonts on the axes
, and in the meantime, people should get decent results if
> they set ps.useafm : True in their rc settings.
>
> Comments?
>
>
> On Wednesday 14 June 2006 19:53, Ryan Krauss wrote:
> > (Sorry, I submitted this email with a real figure instead of a toy
> > example a
gt; exponent in {\small}. Let me know if this is acceptable, and I'll commit it.
>
> On Wednesday 14 June 2006 19:14, Ryan Krauss wrote:
> > I still have the problem with large exponents with your matplotlibrc
> > file (but the y-axis plots are no longer different).
> >
t; >
> > I'm using the latest svn as well (2479), and I cant reproduce your
> > problem. Try deleting your tex.cache.
> >
> > Darren
> >
> > On Wednesday 14 June 2006 18:14, Ryan Krauss wrote:
> > > I am having a problem with the fonts for exponen
ng the latest svn as well (2479), and I cant reproduce your problem.
> Try deleting your tex.cache.
>
> Darren
>
>
> On Wednesday 14 June 2006 18:14, Ryan Krauss wrote:
> > I am having a problem with the fonts for exponents on semilog plots with
> > usetex.
> >
I am having a problem with the fonts for exponents on semilog plots with usetex.
The attached figure can be generated on my machine with
figure(1)
t=arange(0,10,0.01)
y=sin(2*pi*t)
semilogx(t,y)
I just upgraded to the latest svn and now the y-axis plots look
different from the x-axis.
matplotlib
I don't know the answer to your question exactly, but had some data
like that and was very happy with numpoints=2. You could see if that
is good enough for now.
Ryan
On 6/12/06, Wolfgang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to display some measurement data as simple dots, and also a
> mo
Which LaTeX distribution are you using on windows? TexLive handles
paths much more poorly than MikTeX.
On 6/12/06, Wolfgang <[EMAIL PROTECTED]> wrote:
> Finally I changed in matplotlib/__init__.py the evaluation of $HOME to a
> path without spaces because all files are transfered to
> $HOME.matpl
You can set matplotlib up to use LaTeX, but it can be a little bit of
work to get it going. The results are quite beautiful though.
set usetex = 1 in yout matplotlibrc file to try it out. It depends on
LaTeX, dvipng, and ghostscript.
Ryan
On 6/6/06, William Hartt <[EMAIL PROTECTED]> wrote:
>
>
73 matches
Mail list logo