[Matplotlib-users] Histogram appearance

2014-12-03 Thread Amit Saha
Hi, Please find attached a simple histogram created using the hist() function. Any idea why the last two bars are squeezed into each other? Is there a simple way to fix this while plotting? Thanks, Amit. -- Download BIRT

Re: [Matplotlib-users] Histogram appearance

2014-12-03 Thread Amit Saha
On Thu, Dec 4, 2014 at 6:45 AM, Brendan Barnwell brenb...@brenbarn.net wrote: On 2014-12-03 12:39, Amit Saha wrote: Hi, Please find attached a simple histogram created using the hist() function. Any idea why the last two bars are squeezed into each other? Is there a simple way to fix

Re: [Matplotlib-users] Histogram appearance

2014-12-15 Thread Amit Saha
Hi, On Thu, Dec 4, 2014 at 7:01 AM, Dino Bektešević ljet...@gmail.com wrote: Hello, try doing: import matplotlib.pyplot as plt import random rolls = list() for i in range(1000): rolls.append(random.randint(1,6)) plt.hist(rolls, bins=6) plt.show() Reason why your histogram is

Re: [Matplotlib-users] Newbie Q re: Lorenz attractor

2015-03-08 Thread Amit Saha
On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian prahas.mu...@gmail.com wrote: Hi, I want to create an animation of the Lorenz attractor, plotting each new point as it is generated by the equations. So we see the graph being drawn over time. You will very likely need to use the

Re: [Matplotlib-users] imshow() and pixel intensity

2015-05-18 Thread Amit Saha
Got my answer here: http://stackoverflow.com/questions/30301986/matplotlib-imshow-and-pixel-intensity On Sun, May 17, 2015 at 10:02 PM, Amit Saha amitsaha...@gmail.com wrote: Hi all, Just trying to understand how the value of the matrix fed to imshow() function determines the intensity

[Matplotlib-users] imshow() and pixel intensity

2015-05-17 Thread Amit Saha
Hi all, Just trying to understand how the value of the matrix fed to imshow() function determines the intensity of the pixel in grey scale mode. Consider the example code: import random import matplotlib.pyplot as plt import matplotlib.cm as cm def pixels(n=3): pixel_data = [] for _ in

Re: [Matplotlib-users] plot() and imshow() relationship

2015-06-17 Thread Amit Saha
On Sat, May 30, 2015 at 1:50 AM, Paul Hobson pmhob...@gmail.com wrote: imshow is for displaying arrays as images/rasters. plot is for showing data/functions as points and lines. See the gallery for imshow: http://matplotlib.org/gallery.html#images_contours_and_fields Thanks Paul. I have

[Matplotlib-users] plot() and imshow() relationship

2015-05-29 Thread Amit Saha
Hi all, I am trying to understand if there is a way to compare how plot() and imshow() works for the case where I am not using imshow() to display an image. Via the plot() function, I am specifying the points that I want to plot and also optionally the color that i want the points to be in. For