[Matplotlib-users] Another text problem...
I've also discovered another text problem. If I add two lines of test to a plot as follows: import mapplotlib.pyplot as plt fig=plt.figure() plt.text(0.4,0.5,"some text") plt.text(0.6,0.5,"some more text") then the two sets of text line up nicely with each other, because they have the same y-axis position. But if I do: import mapplotlib.pyplot as plt fig=plt.figure() plt.text(0.4,0.5,"some text") plt.text(0.6,0.5,"some text with a g in it") then the "some text with a g in it" is shifted upwards slightly so that the bottom of "some text" lines up with the bottom of the "g", and doesn't line up witht he rest of the letters. It look like they are not on the same line! This has got to be a bug in the way matplotlib deals with text. -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] variant not working in text()...
Hi all, I'm adding some text to a plt like this: import mapplotlib.pyplot as plt fig=plt.figure() plt.text(0.5,0.5,"some text", variant='small-caps') but the text that is plotted is not small caps, its just normal. Is this a bug or am I doing something wrong? -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] hist question...
Hi all, Is there anyway of re-ploting the distribution generated by hist at a later point? I want to call it in a subroutine and have the resulting distributions returned so I can plot them without having to recalculate them each time. I couldn't find anything int he online documentation but I figured it'd be something like: import matplotlib.pyplot as plt hplot=plt.hist(data, bins=1000) plt.hist(hplot) or plt.hist(hplot[0],bins=hplot[1]) or plt.plot(hist) etc, but nothing works. Cheers, Nick Schurch -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] hist question...
Hi all, Is there anyway of re-ploting the distribution generated by hist at a later point? I want to call it in a subroutine and have the resulting distributions returned so I can plot them without having to recalculate them each time. I couldn't find anything int he online documentation but I figured it'd be something like: import matplotlib.pyplot as plt hplot=plt.hist(data, bins=1000) plt.hist(hplot) or plt.hist(hplot[0],bins=hplot[1]) or plt.plot(hist) etc, but nothing works. -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] how can I show some figures, but not others?
I have a script that calls several subroutines, each of which makes a different figure. One of these routines makes lots of figures for use in a webpage, all of which are saved as they are made. When I call show() at the end of the script it is showing all the figures (as one might expect), but what I really want is only some of the figures to be brought up in the GUI. Is there a way of specifying which figures show() shows (I can't find anything on the webpage)? -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- Download IntelĀ® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] tabbed figure browsing..
I have a script that calls several subroutines which each draw a figure (TkAgg backend). When I call show() at the end of the script all the figures pop up no problem, but when your producing 20+ figures its a bit overwhelming! It'd be great if I could have just one plot window with each figure as a tab in that window - is this possible from matplotlib? -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] his problems...
HI all, I've been using matplotlip for a while now but mainly for line plots, scatter plots and the odd dendrogram. I recently tried plotting a histogram (of a binomial function) and encountered a problem. So I though I'd try the extremely simple example set on the front of the matplotlib page and heres what I got: Python 2.4.3 (#1, Sep 3 2009, 15:37:12) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import randn, hist >>> x = randn(1) >>> hist(x, 100) Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line 1633, in hist ret = gca().hist(*args, **kwargs) File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 5060, in hist align=align, log=log) File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 3253, in bar assert len(height)==nbars, "argument 'height' must be %d or scalar" % nbars AssertionError: argument 'height' must be 101 or scalar Any idea why this isn't working? I have matplotlib v0.91.2 - will updating to 0.99 solve the problem? -- Cheers, Nick Schurch -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users