Re: [Matplotlib-users] histogram plots color range

2012-01-30 Thread johanngoetz
nahren manuel wrote: > > Hello , > I have a two dimensional array, 40X20(rowsXcolumns). Each of the 40 rows > themselves hold values of the bins of a distribution (which is not always > normal, can expect a bimodal curve as well) > > It is little difficult to explain to I actually created a sam

Re: [Matplotlib-users] How to shift colormap?

2011-11-11 Thread johanngoetz
I have this script that uses the matplotlib Slider object to control the colormap of a histogram. This could be very close to what you want. Here is the script: ### begin colormap_slider.py # import math, copy import numpy from matplotlib import pyplot, colors, cm

[Matplotlib-users] colorbar and scilimits

2011-03-21 Thread johanngoetz
Is there a way to set the style and scilimits to the colorbar axes? All my attempts failed. For example, run the following script, I get the error shown below: ### begin example script import numpy from matplotlib import pyplot n = 500 x = numpy.random.standard_normal(n) y = 2.0 + 3.0 * x +

[Matplotlib-users] 1D and 2D histograms using numpy and matplotlib

2011-02-23 Thread johanngoetz
There have been a lot of messages lately about histograms in general and I though it was about time I share a bit of code I am using to handle them. I have created a Histogram class that inherits directly from the numpy.ndarray object. I then have a plothist() method which creates the plot on a ca

Re: [Matplotlib-users] zoomed copy of axis for grid of subplots

2011-01-31 Thread johanngoetz
Thanks guys! This is exactly what I was looking for. The axes_grid1 toolkit works like a charm. I have attached a revised version of the example I had before with a few minor modifications and some descriptive text at the top. Is there a standard way for non-developers (i.e. users) to contribute

[Matplotlib-users] zoomed copy of axis for grid of subplots

2011-01-25 Thread johanngoetz
Hello, A common task I have is to histogram one variable of a multidimensional dataset as a function of two (or more) variables. I have attached an example which shows exactly what I would like to do. The problem I would like to solve is the zoomed in x-axis which is the last part of the script a