On Sat, May 30, 2015 at 1:50 AM, Paul Hobson 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 since then have
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
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 wrote:
> Hi all,
>
> Just trying to understand how the value of the matrix fed to imshow()
> function determines the intensity of the p
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 r
On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian
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 animation API for th
Hi,
On Thu, Dec 4, 2014 at 7:01 AM, Dino Bektešević 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 wei
On Thu, Dec 4, 2014 at 6:45 AM, Brendan Barnwell 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?
>>
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
Hi all,
Consider the following code:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.gca()
circle = plt.Circle((0, 0), radius = 0.5)
ax.add_patch(circle)
print(plt.axis())
plt.show()
The default axis limits are printed as:
(0.0, 1.0, 0.0, 1.0)
I am not sure why this is the case. S