[Matplotlib-users] two axes on top of one another with one rotated

2018-04-28 Thread Ryan Krauss
​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

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Ryan Krauss
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 efir...@hawaii.edu wrote: On 08/10/2010 05:43 PM, Ryan

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Ryan Krauss
that 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 ryanli...@gmail.com wrote: Thanks. I need to role out a python

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Ryan Krauss
/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 close all the plot windows every time I run

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-10 Thread Ryan Krauss
Out[6]: '1.5.0b1' On Tue, Aug 10, 2010 at 10:43 PM, Ryan Krauss ryanli...@gmail.com wrote: 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

Re: [Matplotlib-users] saving a PNg jsut as dispalyed

2008-03-27 Thread Ryan Krauss
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 : 100 nope. I think all that does is set the default dpi for savefig

[Matplotlib-users] easy way to find and install all dependencies for Ubuntu source install

2008-03-26 Thread Ryan Krauss
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

[Matplotlib-users] draw_tex NotImplementedError in backend_bases.py

2008-03-26 Thread Ryan Krauss
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 type 'exceptions.NotImplementedError' Traceback (most recent call last)

Re: [Matplotlib-users] easy way to find and install all dependencies for Ubuntu source install

2008-03-26 Thread Ryan Krauss
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, GTKAgg, TkAGG, and postscript backends. You

Re: [Matplotlib-users] saving a PNg jsut as dispalyed

2008-03-26 Thread Ryan Krauss
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 dpi

[Matplotlib-users] installation problem/crash

2007-12-11 Thread Ryan Krauss
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

Re: [Matplotlib-users] installation problem/crash

2007-12-11 Thread Ryan Krauss
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/Numpy/Matplotlib in windows. On one of his

Re: [Matplotlib-users] installation problem/crash

2007-12-11 Thread Ryan Krauss
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 with Python/Scipy/Numpy/Matplotlib

Re: [Matplotlib-users] Wanted: recommendations on embedding matplotlib in a wxPython application

2007-11-28 Thread Ryan Krauss
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

[Matplotlib-users] wxmpl: Can't create printer PDF because the id PDF is already used

2007-11-28 Thread Ryan Krauss
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 created

[Matplotlib-users] zeros and ones difference between pylab and scipy

2007-10-11 Thread Ryan Krauss
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 *

Re: [Matplotlib-users] latex labels on saved plots

2007-09-25 Thread Ryan Krauss
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 wasn't set up

[Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
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:

Re: [Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
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] wrote: I would

Re: [Matplotlib-users] creating a timeline

2007-09-20 Thread Ryan Krauss
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] wrote: I am

Re: [Matplotlib-users] eliminating end labels on axes

2007-09-15 Thread Ryan Krauss
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

Re: [Matplotlib-users] LaTeX fonts

2007-08-07 Thread Ryan Krauss
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 LaTeX

Re: [Matplotlib-users] matplotlib-users@lists.sourceforge.net

2007-06-27 Thread Ryan Krauss
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 past and the final

Re: [Matplotlib-users] wx apps and matplotlib plots, are they friends?

2007-06-22 Thread Ryan Krauss
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

Re: [Matplotlib-users] Documentation for 3D plotting?

2007-06-22 Thread Ryan Krauss
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 thing I would

Re: [Matplotlib-users] Python issue of Computing in Science and Engineering available

2007-04-25 Thread Ryan Krauss
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 copy of

Re: [Matplotlib-users] [SciPy-user] plotting with scipy

2007-03-27 Thread Ryan Krauss
13:48:01 + this is the python i am using, i download the mathplotlib but i think is not working i just save it in the Desktop.. and this is 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

[Matplotlib-users] subplots with the OO interface (ax.rowNum, ax.colNum)

2007-03-20 Thread Ryan Krauss
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

Re: [Matplotlib-users] subplots with the OO interface (ax.rowNum, ax.colNum)

2007-03-20 Thread Ryan Krauss
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: ax1=fig.add_subplot(2,1,1) ax2=fig.add_subplot(2,1,2

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
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 3/15/07, John Hunter [EMAIL PROTECTED] wrote

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-19 Thread Ryan Krauss
be 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 wxmpl

[Matplotlib-users] source install question: WXAgg's accelerator requires the wxPython headers.

2007-03-16 Thread Ryan Krauss
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

[Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread Ryan Krauss
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

Re: [Matplotlib-users] pylab vs. embedding in wx

2007-03-15 Thread Ryan Krauss
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/pylab in my utility scripts so

[Matplotlib-users] 3d axis orientation

2007-02-24 Thread Ryan Krauss
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

[Matplotlib-users] 3d wire frame with thicker lines

2007-02-19 Thread Ryan Krauss
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.

Re: [Matplotlib-users] how to set figure size

2006-11-07 Thread Ryan Krauss
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))

Re: [Matplotlib-users] dvipng/miktex 2.5 usetex problem

2006-10-28 Thread Ryan Krauss
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 XP with MikTex 2.5 and dvipng 1.8. I am getting this warning: dvipng

[Matplotlib-users] dvipng/miktex 2.5 usetex problem

2006-10-27 Thread Ryan Krauss
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

Re: [Matplotlib-users] segfault from svn

2006-09-19 Thread Ryan Krauss
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] wrote: I just upgraded

[Matplotlib-users] Problem with windows install

2006-09-06 Thread Ryan Krauss
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

Re: [Matplotlib-users] exponent fonts with usetex

2006-06-16 Thread Ryan Krauss
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 and the file size was too big and it awaits moderator approval). I am afraid I asked