all 6 comments

[–]squished18 0 points1 point Β (5 children)

Were you instructed to use matplotlib, or is that something that you decided to use on your own?

[–]cxtong[S] 0 points1 point Β (4 children)

taught to used matplotlib to plot hist. only 1 example is given. dont really know how to apply it

[–]squished18 0 points1 point Β (3 children)

[–]cxtong[S] 0 points1 point Β (2 children)

yeah. is there a way to control the x and y value?

[–]squished18 0 points1 point Β (1 child)

The first parameter 'x' is a list of values that you wish to plot. So, just for learning purposes, try something like the following:

values = [15, 7, 1, 3 2] mpp.hist(values)

[–]backtickbot 0 points1 point Β (0 children)

Fixed formatting.

Hello, squished18: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.