[Matplotlib-users] LinearSegmentedColormap, Normalize, and colorbar

2010-12-08 Thread Timothy W. Hilton
Hello, I'm trying to teach myself to create custom colormaps to highlight certain aspects of a dataset I am working with. The script below produces two plots -- the first shows a 4x4 array foo of random floats between 0.0 and 1.0, and the second shows the same array, but normalized such that [foo

Re: [Matplotlib-users] colormaps - combine linear segmented with discrete sections?

2010-12-08 Thread Timothy W. Hilton
Hi Friedrich, Many thanks for your detailed response. I've had to turn my attention to other things in the past few weeks, but I am back to this task now. I've implemented the Norm that you suggested by subclassing Normalize; that was a great suggestion. Now I have a two dimensional array where

[Matplotlib-users] Plotting complex functions

2010-12-08 Thread Raoul
Hi all, I wanted to plot complex valued functions with real support: f : R -> C The plot should show the absulote value abs(f)^2 and the phase angle(f). The demand for such a plot type originates from quantum mechanics where I want to plot |phi> and/or in this way showing the phase of the w

[Matplotlib-users] Plotting complex functions

2010-12-08 Thread Raoul
Hi all, I wanted to plot complex valued functions with real support: f : R -> C The plot should show the absulote value abs(f)^2 and the phase angle(f). The demand for such a plot type originates from quantum mechanics where I want to plot |phi> and/or in this way showing the phase of the w

[Matplotlib-users] RuntimeError: failed to gain raw access

2010-12-08 Thread Werner F. Bruhin
Using mpl 0.99.1 and sometimes get the following exception. Traceback (most recent call last): File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 14640, in lambda event: event.callable(*event.args, **event.kw) ) File "C:\dev\TwcbBranchesV32\Program\panelstats.py