[Matplotlib-users] Second y axis
Title: Second y axis Hi, I am using a second y axis on the right with twinx() like the following: ax = subplot(111) plot_date(..., label='foo') ax.xaxis.set_major_locator(month3) ax.xaxis.set_major_formatter(DateFormatter('%Y-%m')) ax.xaxis.set_minor_locator(month1) ax.autoscale_view() labels = ax.get_xticklabels() setp(labels, rotation=60) ax2 = twinx() plot_date(..., label='bar') [...] I am then repeating the xaxis.set_* functions for ax2 so that they overprint the ax ones, otherwise I get two differently formatted x axes. I would however just like to use the first xaxis setting and not print it for ax2 at all - how could I do that? Also, I can't find how to merge the two labels 'foo' and 'bar' into a single legend, is there way to do that? TIA, Colin ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] suggestion for Example plots
I have always felt that it would be useful to have available a collection of plots corresponding to the code in the examples file as part of the distribution. (for those examples that generate plots, of course) The plot names would be the same as the example code that generated them. It could be in an economical format (png?) so as to not take up a lot of space. For my own part, I tend to be lazy and would like a way to peruse the new capabilities before I decide to install the new release or wait for the next. This would also provide a complete gallery to help those considering adoption. It would also provide a verification for persons testing a new install that this is what the results of running the examples should be. just an idea. --Jim ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] suggestion for Example plots
> "James" == James Boyle <[EMAIL PROTECTED]> writes: James> I have always felt that it would be useful to have James> available a collection of plots corresponding to the code James> in the examples file as part of the distribution. (for James> those examples that generate plots, of course) The plot James> names would be the same as the example code that generated James> them. It could be in an economical format (png?) so as to James> not take up a lot of space. For my own part, I tend to be James> lazy and would like a way to peruse the new capabilities James> before I decide to install the new release or wait for the James> next. This would also provide a complete gallery to help James> those considering adoption. It would also provide a James> verification for persons testing a new install that this is James> what the results of running the examples should be. The script examples/backend_driver.py does just this -- it runs a most of the examples and generates output in a variety of formats (PNG, PS, SVG). I usually tun this before releases and load all the images into a viewer to check for bugs. We could add these generated images to a web page, but sourceforge is already complaining that I am over my quota. Apparently, I can ask for more space, though. JDH ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Question re: mathtext equations
Does anyone know the syntax for fraction used in mathtext? The LaTex version is \frac{num}{denom} but this gives an error. Thanks ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Question re: mathtext equations
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: > > Does anyone know the syntax for fraction used in mathtext? The LaTex > version is \frac{num}{denom} but this gives an error. > > Thanks > > > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Question re: mathtext equations
> "William" == William Hartt <[EMAIL PROTECTED]> writes: William> Does anyone know the syntax for fraction used in William> mathtext? The LaTex version is \frac{num}{denom} but William> this gives an error. mathtext doesn't currently support frac (but hopefully it will by the end of the summer as we have a google summer-of-code student working on mathtext). As Ryan noted, if you have access to TeX/LaTeX on your system, you can use that to render your equations Requirements: tex *Agg backends: dvipng PS backend: latex w/ psfrag, dvips, and Ghostscript 8.51 (older versions do not work properly) ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] [matplotlib-devel] ANN: matplotlib-0.87.3
On 6/6/06, Charlie Moad <[EMAIL PROTECTED]> wrote: > New compile to match numpy-0.9.8. > win32-py2.4 coming tomorrow morning... > > http://cheeseshop.python.org/pypi/matplotlib/ > http://sourceforge.net/project/showfiles.php?group_id=80706 > > === > 2006-06-06 Released 0.87.3 at revision 2432 And just to prove that ipython is wedded to mpl til death do us part: http://scipy.net/pipermail/ipython-user/2006-June/001750.html We put 0.7.2 of ipython out also yesterday, and it does include a number of fixes to the threading support that pylab requires with the WX, GTK or Qt backends. Cheers, f ps - it seems the matplotlibrc file at: http://matplotlib.sf.net/matplotlibrc is a bit outdated: In [1]: import matplotlib /home/fperez/tmp/local/lib/python2.3/site-packages/matplotlib/__init__.py:947: UserWarning: Bad val "free" on line #204 "image.aspect : free # free | preserve" in file "/home/fperez/.matplotlib/matplotlibrc" not a valid aspect specification The one in the source distro is fine (I'm in the middle of updating, so I noticed). ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] ANN: matplotlib-0.87.3
New compile to match numpy-0.9.8. win32-py2.4 coming tomorrow morning... http://cheeseshop.python.org/pypi/matplotlib/ http://sourceforge.net/project/showfiles.php?group_id=80706 === 2006-06-06 Released 0.87.3 at revision 2432 2006-05-30 More partial support for polygons with outline or fill, but not both. Made LineCollection inherit from ScalarMappable. - EF 2006-05-29 Yet another revision of aspect-ratio handling. - EF 2006-05-27 Committed a patch to prevent stroking zero-width lines in the svg backend - DSD 2006-05-24 Fixed colorbar positioning bug identified by Helge Avlesen, and improved the algorithm; added a 'pad' kwarg to control the spacing between colorbar and parent axes. - EF 2006-05-23 Changed color handling so that collection initializers can take any mpl color arg or sequence of args; deprecated float as grayscale, replaced by string representation of float. - EF 2006-05-19 Fixed bug: plot failed if all points were masked - EF 2006-05-19 Added custom symbol option to scatter - JDH 2006-05-18 New example, multi_image.py; colorbar fixed to show offset text when the ScalarFormatter is used; FixedFormatter augmented to accept and display offset text. - EF 2006-05-14 New colorbar; old one is renamed to colorbar_classic. New colorbar code is in colorbar.py, with wrappers in figure.py and pylab.py. Fixed aspect-handling bug reported by Michael Mossey. Made backend_bases.draw_quad_mesh() run.- EF 2006-05-08 Changed handling of end ranges in contourf: replaced "clip-ends" kwarg with "extend". See docstring for details. -EF 2006-05-08 Added axisbelow to rc - JDH 2006-05-08 If using PyGTK require version 2.2+ - SC 2006-04-19 Added compression support to PDF backend, controlled by new pdf.compression rc setting. - JKS 2006-04-19 Added Jouni's PDF backend 2006-04-18 Fixed a bug that caused agg to not render long lines 2006-04-16 Masked array support for pcolormesh; made pcolormesh support the same combinations of X,Y,C dimensions as pcolor does; improved (I hope) description of grid used in pcolor, pcolormesh. - EF 2006-04-14 Reorganized axes.py - EF 2006-04-13 Fixed a bug Ryan found using usetex with sans-serif fonts and exponential tick labels - DSD 2006-04-11 Refactored backend_ps and backend_agg to prevent module-level texmanager imports. Now these imports only occur if text.usetex rc setting is true - DSD 2006-04-10 Committed changes required for building mpl on win32 platforms with visual studio. This allows wxpython blitting for fast animations. - CM 2006-04-10 Fixed an off-by-one bug in Axes.change_geometry. 2006-04-10 Fixed bug in pie charts where wedge wouldn't have label in legend. Submitted by Simon Hildebrandt. - ADS 2006-05-06 Usetex makes temporary latex and dvi files in a temporary directory, rather than in the user's current working directory - DSD 2006-04-05 Apllied Ken's wx deprecation warning patch closing sf patch #1465371 - JDH 2006-04-05 Added support for the new API in the postscript backend. Allows values to be masked using nan's, and faster file creation - DSD 2006-04-05 Use python's subprocess module for usetex calls to external programs. subprocess catches when they exit abnormally so an error can be raised. - DSD 2006-04-03 Fixed the bug in which widgets would not respond to events. This regressed the twinx functionality, so I also updated subplots_adjust to update axes that share an x or y with a subplot instance. - CM 2006-04-02 Moved PBox class to transforms and deleted pbox.py; made pylab axis command a thin wrapper for Axes.axis; more tweaks to aspect-ratio handling; fixed Axes.specgram to account for the new imshow default of unit aspect ratio; made contour set the Axes.dataLim. - EF 2006-03-31 Fixed the Qt "Underlying C/C++ object deleted" bug. - JRE 2006-03-31 Applied Vasily Sulatskov's Qt Navigation Toolbar enhancement. - JRE 2006-03-31 Ported Norbert's rewriting of Halldor's stineman_interp algorithm to make it numerix compatible and added code to matplotlib.mlab. See examples/interp_demo.py - JDH 2006-03-30 Fixed a bug in aspect ratio handling; blocked potential crashes when panning with button 3; added axis('image') support. - EF 2006-03-28 More changes to aspect ratio handling; new PBox class in new file pbox.py to facilitate resizing and repositioning axes; made PolarAxes maintain unit aspect ratio. - EF 2006-03-23 Refactored TextWithDash class to inherit
[Matplotlib-users] line labels?
Is there a way to programmatically write line labels, as in the attached image? If it doesn't go through the list, basically I want a label at the end of each of 10 or so lines in a plot. Tx <> ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users