I need to efficiently plot a set of x,y points where each point has a
different color. I tried multiple calls to plot() with a single point each
but that is way too slow. I switched to using scatter() and passing in a
list of colors which works great. However, I'd really like to have the
marker
Here is the relevant code fragment:
for i in range(1, compList[0][16]):
pylab.hold(True)
if compList[0][4] == 'Decay S-Curve':
testFunctions.zCurve(compList[0][10],compList[0][9])
elif compList[0][4] == 'Bell Curve':
testFunctio
Chris,
Both with respect to documentation and functionality, what you are
encountering is the historical aspect of masked arrays as a tacked-on
part of python numeric packages, and of matplotlib. Support and
integration are improving, but still far from perfect. A largely new,
and substantia
import numpy as np
a = ['','','',1.1,2.2]
mask_a = [i == '' for i in a]
b = np.ma.MaskedArray(a, mask=mask_a)
Chris Withers wrote:
> Eric Firing wrote:
>
>> Chris,
>>
>> Use masked arrays. See masked_demo.py in the mpl examples subdirectory.
>>
>
> Hi Eric,
>
> I took a look at that, b
All,
Alright I've made some progress here improving upon the example.
(Codes at the bottom). So it looks like I've started a writing a
wrapper class around the plot command that continuously updates it's
data by itself without having to write extra code. To me, using the
subplot comman
I don't see the character in the plot you sent. So at least that's
consistent. ;)
However, I still can't get things to break locally (on Linux, at least),
with all permutations of ps.fonttype, ps.useafm, ps.distiller, and
mathtext.fontset.
Can you send your entire matplotlibrc file? Perhaps
Sorry, John, but here is my output, and it still doesn't work.
>>> from pylab import *
>>> rcParams['mathtext.fontset']
'cm'
>>> rcParams['mathtext.fallback_to_cm']
True
>>> rcParams['ps.useafm']
False
>>> rcParams['ps.fonttype']
3
>>> plot([1,2,3])
[]
>>> text(1,1.5,r'$\chi$')
>>> savefig('c:/te
On Wed, Mar 19, 2008 at 7:43 AM, Mark Bakker <[EMAIL PROTECTED]> wrote:
> I have confirmed that it is a bug in (at least the windows version) of mpl
> 0.91.2.
> When saving eps files, and using mathtext, the cm fonts don't get saved, and
> the
> greek symbols (and others I presume) don't show up in
Unfortunately, I'm still unable to reproduce the problem myself. Have
you tried installing the CM fonts (copying them to C:\Windows\Fonts)?
Maybe GS is trying to re-embed them and can't find them.
Cheers,
Mike
Mark Bakker wrote:
> I have confirmed that it is a bug in (at least the windows ver
I have confirmed that it is a bug in (at least the windows version) of mpl
0.91.2.
When saving eps files, and using mathtext, the cm fonts don't get saved, and
the
greek symbols (and others I presume) don't show up in the eps file.
This works in mpl 0.90.1, where the eps file does store the fonts.
Eric Firing wrote:
> In general, I don't think mpl is threadsafe at all; it uses global
> variables, such as all the rc parameters, that could easily be
> modified by one thread while being used by another. I think that
> great care would be needed if one wanted to have multiple threads
> maki
Eric Firing wrote:
> This is not doing what you think it is,
Indeed, I guess I was seeing nans being treated as missing values rather
than being masked...
> You should use numpy.masked_where(numpy.isnan(aa), aa).
I am now ;-)
However, I'm still running into problems when I try and plot the gap
Pierre GM wrote:
> Could you send me an example of the kind of data you're using ?
It's basically performance and volume data for a high-volume website.
Unfortunately, the data is gappy in places due to data collection errors
in the past...
(it's important the gaps are shown, rather than trying t
Eric Firing wrote:
> Short of laboriously putting an image in each bar, no.
That's a shame :-(
So, no gradient filled patches in MPL?
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
---
Hello Mike -
Thanks for taking a look at this.
Easy example:
from pylab import *
plot([1,2,3])
text(1,1.5,r'$\chi$')
savefig('d:/temp/test.eps')
There shoud now be a line and the symbol chi.
Works great in the pdf file, not in the eps file.
Both are attached.
Strangely enough at the end of the
15 matches
Mail list logo