[Matplotlib-users] test message
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF01UANu7GcwGNZSMRAoXAAKCXUTOg6rJQ+/uWpA9+y9lMvXjDcACgj2Qh fVgbxatBaf5cT8GsNc3eB70= =8ZDP -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Toggle plot trace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Hunter wrote: | On 2/14/07, David Clark (Lists) <[EMAIL PROTECTED]> wrote: | |> I'm working on a GUI with wxPython to display several traces of data. |> Using a checkbox, I would like to be able to turn traces on the plot on |> and off. I have managed to find the right methods to turn the whole |> axes on and off, but not individual traces. Any help would be |> appreciated. | | | Everythong that draws into a figure (Axes, Text, Line2D, Polygon, | etc...) all derive from Artist which has a visible property. So you | can turn anything off/on with | | o.set_visible(True|False) | | JDH John, Thanks for the reply. I thought it might have to do with that. I am a new python/matplotlib user. In my inexperience, I'm not sure what I should use for "o" in o.set_visible Thanks, Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology ph. 505.667.4147 fx. 505.665.4121 pg. 505.996.1416 e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF1J7gNu7GcwGNZSMRAm17AJ4gOygLy1aw75NaVtPq8jQ1NzT7+ACcDoJv zC58EcBmg/mBcK9QH04H25Y= =Yb// -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Toggle plot trace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Hunter wrote: | On 2/15/07, David D Clark <[EMAIL PROTECTED]> wrote: | |> Thanks for the reply. I thought it might have to do with that. I am a |> new python/matplotlib user. In my inexperience, I'm not sure what I |> should use for "o" in o.set_visible | | o in the example above is any matplotlib artist, eg a line (returned | by plot), a text instance (returned by set_xlabel, set_ylabel, | set_title), a rectangle (returned by bar), etc.. Perhaps the example | below will clarify | | | Example Removed John, That did the trick! I'm in business! Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology ph. 505.667.4147 fx. 505.665.4121 pg. 505.996.1416 e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF1KgsNu7GcwGNZSMRAjmxAKCUukibHuMkDiOoDK9H/AmmzmTVjACfe3p2 UmxtdeT6Oil6hvWopz7znjk= =JshG -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] One title over two subplots
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have a figure with four subplots (2x2). I would like to put a title centered over the top row. How do I do this? Thanks, Dave -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGOREuNu7GcwGNZSMRApPnAJ4/I8N5uAHzI+/fFWuMtvmQ8OF9XQCdFXvL 0QF/2m3HgyxkGmhGlPtnzKM= =MYiT -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] multiple line title
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Folks, Is there a way to make a multiple line title? I have looked through the documentation and googled, but have not found an answer. I would like something that looks like this This is the first line second:line Thanks, Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGgtB6Nu7GcwGNZSMRAqHOAKCvb1Km0EqjClU/Za/bsEI2xmnETgCgsmtI sWKt0+VAu16xCtWZTaeiPV4= =AG8W -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] multiple line title
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Fred, That did the trick. I thought I had tried that and it failed. I must have made a typo. Thanks, Dave fred wrote: > David D Clark a écrit : >> Is there a way to make a multiple line title? I have looked through the >> documentation and googled, but have not found an answer. I would like >> something that looks like this >> >> This is the first line >> second:line >> > title('This is the first line\nsecond:line') ? > - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology ph. 505.667.4147 fx. 505.665.4121 pg. 505.996.1416 e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGgtv5Nu7GcwGNZSMRAudZAJ9Vj4bXb1iPHhryOg7FYYCS9cKfTwCeJQMJ +lJdVeHtBy3wfcerDVxtLWY= =JgS8 -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] LateX and str()
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am trying to create some text on a plot with the following commands: vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime) text(vlo,vlotime,vlostring) However, the text is rendered literally -- $v_{lo}$=0.3 t=7961.66 instead of nicely formatted LaTeX like text when I do text(vlo,vlotime,"$v_{lo}=$") without trying to add the str(...), it renders the expression correctly. Any suggestions? Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGwgG0Nu7GcwGNZSMRAqRrAJ4kHL6bpFVFhJteHQ1uzQPtREFxkwCdFxe4 zw3F6ymJr5XSeJxwDQmBFjE= =MIQ6 -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] LateX and str()
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Using vlostring="$v_{lo}$=%5.2f" % (vlo) doesn't work either. Dave David D Clark wrote: > Hello, > > I am trying to create some text on a plot with the following commands: > > vlostring="$v_{lo}$="+str(vlo)+" t="+str(vlotime) > text(vlo,vlotime,vlostring) > > However, the text is rendered literally -- > > $v_{lo}$=0.3 t=7961.66 > > instead of nicely formatted LaTeX like text > > when I do > > text(vlo,vlotime,"$v_{lo}=$") > > without trying to add the str(...), it renders the expression correctly. > > Any suggestions? > Dave > - - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology ph. 505.667.4147 fx. 505.665.4121 pg. 505.996.1416 e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGwgvzNu7GcwGNZSMRAjrzAJ9mgSOdnbBf7uYpgrARdDnF6S/XBQCfUh1O GKM4Xeg2wMhedNv/kyDmbTM= =zW3m -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Plot array of arrays
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have been struggling with this all afternoon. I have a function which generates an array of arrays: y=[array([]),array([]),array([])...] and x=array([x0,x1,x2,...]) I want to plot the family of curves y=f(x). plot(x,y[n]) where n is the nth array in y plots the correct curve, however plot(x,y) and plot(x,y[:]) complain about mismatched array dimensions. Any suggestions? Thanks, Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://pgp.mit.edu http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHAYQNNu7GcwGNZSMRAnKvAKCKHRigFQr7pOc1OU4uyWIPaPjQzQCcCG2c 8lWM6Nhsl/R8s21Rs3mM7v0= =Wr2j -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Plot array of arrays
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Thanks for the help. This was a big clue. It turns out that what I thought was an array of arrays was actually a list of arrays. If my list was y, running plot(x,array(y).transpose()) solved the problem! Thanks for your help, Dave Alan G Isaac wrote: > On Mon, 01 Oct 2007, David D Clark apparently wrote: >> y=[array([]),array([]),array([])...] >> and x=array([x0,x1,x2,...]) > >> I want to plot the family of curves y=f(x). >> plot(x,y[n]) where n is the nth array in y plots the correct curve, >> however plot(x,y) and plot(x,y[:]) complain about mismatched array >> dimensions. > > > Might you want > plot(x,y.transpose()) > > hth, > Alan Isaac > > > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://pgp.mit.edu http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHAoCvNu7GcwGNZSMRAmlVAJ46vuGaTNmGg0GDvPY7FzAdWhk9sACeIWpY i12r6Utl4pLzyabsxCCP+Dw= =jWKL -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Automatic Marker Generation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Folks, I have an array A=f(x) with a family of curves. Is there an easy way to get a different marker for each line of plot(x,A). This is what I currently have: mrkrs=array(['o','^','v','<','>', 's','+','x','D','d', '1','2','3','4','h', 'H','p','|','_']) ii=0 for kk in arange(A.shape[0]): loglog(f,A[kk], linestyle='-', marker=mrkrs[ii], lw=2) if ii < mrkrs.size-1: ii+=1 else: ii=0 This works, but it's not very elegant. Thanks, Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://pgp.mit.edu http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHBTDkNu7GcwGNZSMRAgFkAJ9wddLwHjGCI805Jb6jokaHjSwGPwCgjwh/ iTbqezvL5vHIv5JGRxAVPyo= =hOfF -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Grid Shifting in PS backend
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello folks, I have a Gaussian peak centered on zero. When the plot is drawn on screen with the GTKAgg backend, the peak is shown in the correct place. When I either click on the disk icon and save the plot as eps or use savefig, the peak is shifted to the left of zero by several x axis units. I am using Python 2.5 with matplotlib 0.90.1 and numpy 1.0.3. and scipy 0.5.1 in my script. These are running on my Fedora 7 box. I compiled and installed mpl 0.90.1 this morning because I noticed this behavior with python-matplotlib-0.90.0 that I had installed with yum. I also see this behavior if I run my script from the command line and from ipython 0.8.1. When I save using PNG, the peak is in the correct place. My Mac also saves both EPS and PNG correctly. Any thoughts? Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://pgp.mit.edu http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHIOunNu7GcwGNZSMRAlKnAJ46KFuJVNN0rC6EHgredtUHYZyvdQCgqQNG OiwS8VN/qZ1ula37vDP7Q88= =/1De -END PGP SIGNATURE- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users