Top "Plot" questions

The graphical representation of a mathematical function or a set of data.

How to plot two columns of a pandas data frame using points?

I have a pandas data frame and would like to plot values from one column versus the values from another …

python matplotlib plot pandas dataframe
Rotating x axis labels in R for barplot

I am trying to get the x axis labels to be rotated 45 degrees on a barplot with no luck. This …

r graph plot bar-chart axis-labels
Colouring plot by factor in R

I am making a scatter plot of two variables and would like to colour the points by a factor variable. …

r colors plot r-factor
Is there a way to detach matplotlib plots so that the computation can continue?

After these instructions in the Python interpreter one gets a window with a plot: from matplotlib.pyplot import * plot([1,2,3]) show() # …

python matplotlib plot
How to fit a smooth curve to my data in R?

I'm trying to draw a smooth curve in R. I have the following simple toy data: > x [1] 1 2 3 4 5 6 7 8 9 10 > y [1] 2 4 6 8 7 12 14 16 18 20 …

r plot curve-fitting
How to create a new figure in MATLAB?

Usually when I plot in MATLAB, it always draws on the same figure. How do I make it draw in …

matlab plot figure
What does the error "arguments imply differing number of rows: x, y" mean?

I'm trying to create a plot from elements of csv file which looks like this: h1,h2,h3,h4 a,1,0,1,0 …

r csv matrix plot ggplot2
Matplotlib scatterplot; colour as a function of a third variable

I want to make a scatterplot (using matplotlib) where the points are shaded according to a third variable. I've got …

python matplotlib plot scatter
matplotlib savefig() plots different from show()

When I use show() to plot the graphs in X, the graphs looks very good. However when I start to …

python graph plot matplotlib
Change grid interval and specify tick labels in Matplotlib

I am trying to plot counts in gridded plots, but I am not being able to figure out how I …

python matplotlib plot grid label