[Matplotlib-users] Highlight values outside colorbar limits

2011-08-29 Thread James McMurray
Hi,

Is it possible to color values outside the colorbar limits in a different
color than the colorbar itself. So for example, an otherwise greyscale plot
could have the values outside the upperlimit in blue and those below the
lower limit in red, so that these points are not confused with the
legitimate data points (as they can be when they are just more black and
white points as default).

Thanks,
James McMurray
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Highlight values outside colorbar limits

2011-08-29 Thread James McMurray
Okay, so using cm.set_over() and set_under works, but is there any way of
adding the set colors to the edges of the colorbar?

On 29 August 2011 15:47, James McMurray jamesmc...@gmail.com wrote:

 Hi,

 Is it possible to color values outside the colorbar limits in a different
 color than the colorbar itself. So for example, an otherwise greyscale plot
 could have the values outside the upperlimit in blue and those below the
 lower limit in red, so that these points are not confused with the
 legitimate data points (as they can be when they are just more black and
 white points as default).

 Thanks,
 James McMurray

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread James McMurray
Hi,

I am having a problem where the colorbar labels will never appear
vertically, even when their rotation is specified as vertical. As you can
see in the screenshot here: http://minus.com/lbOJyOljH  this creates
problems when the labels are cut off and generally looks unprofessional.

I am creating the colorbars with code like:
cbar1.set_label(Lifetime [$\mu$s], rotation='vertical')

And yet the specified rotation has no effect.

Any help would be much appreciated,
James
--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread James McMurray
I made this standalone script here: http://pastebin.com/AnKeCwiU and this
does not suffer from the issue. For comparison here is the plotting function
in my program: http://pastebin.com/7xxtPQYb

The only major difference is the use of the interactive display in the
script, against the use of Figure and the GTK canvas in my application.

I am using matplotlib 1.0.1

On 19 August 2011 10:28, Eric Firing efir...@hawaii.edu wrote:

 On 08/18/2011 09:53 PM, James McMurray wrote:
  Hi,
 
  I am having a problem where the colorbar labels will never appear
  vertically, even when their rotation is specified as vertical. As you
  can see in the screenshot here: http://minus.com/lbOJyOljH  this creates
  problems when the labels are cut off and generally looks unprofessional.
 
  I am creating the colorbars with code like:
   cbar1.set_label(Lifetime [$\mu$s], rotation='vertical')

 I don't understand; even with no kwarg, the label on a vertical colorbar
 will be vertical.  It has been that way for as long as I can remember.

 What mpl version are you using?
 Please provide a minimal standalone script showing the problem.

 Eric



 
  And yet the specified rotation has no effect.
 
  Any help would be much appreciated,
  James
 
 
 
 
 --
  Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
  user administration capabilities and model configuration. Take
  the hassle out of deploying and managing Subversion and the
  tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 
 
 
  ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users



 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread James McMurray
After some testing, it appears to be caused by the use of LaTeX in the
labels which then prevents it from being rotated (but only inside the GTK
application). I have no idea why this is only occurring when it is not in
interactive mode, but I guess for the time being I can just try not to use
LaTeX.

On 19 August 2011 10:57, James McMurray jamesmc...@gmail.com wrote:

 I made this standalone script here: http://pastebin.com/AnKeCwiU and this
 does not suffer from the issue. For comparison here is the plotting function
 in my program: http://pastebin.com/7xxtPQYb

 The only major difference is the use of the interactive display in the
 script, against the use of Figure and the GTK canvas in my application.

 I am using matplotlib 1.0.1


 On 19 August 2011 10:28, Eric Firing efir...@hawaii.edu wrote:

 On 08/18/2011 09:53 PM, James McMurray wrote:
  Hi,
 
  I am having a problem where the colorbar labels will never appear
  vertically, even when their rotation is specified as vertical. As you
  can see in the screenshot here: http://minus.com/lbOJyOljH  this
 creates
  problems when the labels are cut off and generally looks unprofessional.
 
  I am creating the colorbars with code like:
   cbar1.set_label(Lifetime [$\mu$s], rotation='vertical')

 I don't understand; even with no kwarg, the label on a vertical colorbar
 will be vertical.  It has been that way for as long as I can remember.

 What mpl version are you using?
 Please provide a minimal standalone script showing the problem.

 Eric



 
  And yet the specified rotation has no effect.
 
  Any help would be much appreciated,
  James
 
 
 
 
 --
  Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
  user administration capabilities and model configuration. Take
  the hassle out of deploying and managing Subversion and the
  tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 
 
 
  ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users



 --
 Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
 user administration capabilities and model configuration. Take
 the hassle out of deploying and managing Subversion and the
 tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users