setting scientific number notation on colorbar

I now get something really ugly

the labels are 1.164E+00

would be great to remove the + sign, if I can only do 1.164E0

it’s the best…

Hi Thanks for the answer,

actually, I always use
show and plot, I have no clue how to use the functions you suggested …

I’ll look into it.

Do you have an idea where I can find a description of the keyword “format”

‘%.3f’ is nice, but still not scientific format…

you can use

‘%.3e’

for scientific format.

Cheers,

Andre

is this like Fortran?

Oz,

Some plotting functions like pcolor and imshow have keyword args for vmin/vmax where you can explicitly set the min and maximum values for the colorscale. There are some more complicated things you can do with the colormap that are more generic to all plotting functions as well, but I would see if using vmin and vmax does the trick for you.

Ben Root

found a solution after 2 hours …

colorbar(ax=ax1, orientation=‘horizontal’,format=’%.3f’)

now, I need to know how to set up limits for all the images which are
exactly the same limits.
So far I’m failing with the use of “boundaries”

Would be happy to know


Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen


Imagine there’s no countries
it isn’t hard to do
Nothing to kill or die for

And no religion too
Imagine all the people
Living life in peace



Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen


Imagine there’s no countries
it isn’t hard to do

Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace



Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen


Imagine there’s no countries

it isn’t hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace

···

On Mon, May 31, 2010 at 6:01 PM, Oz Nahum <nahumoz@…287…> wrote:

On Mon, May 31, 2010 at 5:55 PM, Andre Walker-Loud <walksloud@…287…> wrote:

On Mon, May 31, 2010 at 5:41 PM, Benjamin Root <ben.root@…1304…> wrote:

On Mon, May 31, 2010 at 7:25 PM, Oz Nahum <nahumoz@…287…> wrote:

Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen


Imagine there’s no countries
it isn’t hard to do
Nothing to kill or die for

And no religion too
Imagine all the people
Living life in peace