A diagram that exhibits a relationship, between two sets of numbers as a set of points having coordinates determined by the relationship.
Questions tagged [graphing]
680 questions
6
votes
1 answer
Plotting in R; cannot be coerced to double error
I am trying to plot a and b, each consisting of 7500 data points. However when
I tried plot(x,y), I got the following error:
> plot(a[11],b[11])
Error in xy.coords(x, y, xlabel, ylabel, log) :
(list) object cannot be coerced to type…

Concerned_Citizen
- 6,548
- 18
- 57
- 75
6
votes
2 answers
Making the marker size as small as possible with matplotlib.pyplot
My program can generate up to 2000000 points within 5 seconds, so I don't have a problem with speed. Right now I am using matplotlib.pyplot.scatter to scatter all my points on my graph. For s=1, it gives me small circles, but not small enough,…

Mike Smith
- 527
- 2
- 6
- 20
6
votes
2 answers
Color intensity error in R
I've run into a bit of an issue in my R self-teaching. I'm hoping someone here can help, as I've found no solutions on Google.
I'm trying to apply some basic color parameters to the plot command. My basic code looks either as:
plot(dose,drugA, type…

Yehuda
- 1,787
- 2
- 15
- 49
6
votes
2 answers
Using errorbar() with semilogy() in MATLAB?
I'd like to plot data x & y with errorbars, ebar, and its fit, yfitted, on a semilog plot. This doesn't seem to work:
figure;
hold on;
errorbar(x,y,ebar);
semilogy(x,yfitted);
Instead of semilog plot I get a linear plot. What should I be doing…

AndyL
- 14,302
- 14
- 43
- 70
6
votes
1 answer
How to create a decision boundary graph for kNN models in the Caret package?
I'd like to plot a decision boundary for the model created by the Caret package. Ideally, I'd like a general case method for any classifier model from Caret. However, I'm currently working with the kNN method. I've included code below that uses the…

James Kyle
- 464
- 5
- 12
6
votes
2 answers
Cocoa: create graphs
Is there a framework out there that will allow me to create simple bar and line graphs?

Matt S.
- 13,305
- 15
- 73
- 129
6
votes
1 answer
D3 graphing selective portions of data set
I have a large time series data set I need to graph, and am trying to use D3 to do it. I plan to have my graph have the x-axis be time, and allow for movement of the graph in the x direction. I want to have the graph only load/display the points…

cdietschrun
- 1,623
- 6
- 23
- 39
6
votes
2 answers
Update Lines in matplotlib
I have a graph with multiple data sets on it. I need to continually redraw these lines, each separately, as the data is updated. How can I delete and reestablish it repeatedly, preferably without having to delete the entire graph and redraw all of…

Elliot
- 5,211
- 10
- 42
- 70
6
votes
2 answers
matlab: putting a circled number onto a graph
I want to put a circled number on a graph as a marker near (but not on) a point. Sounds easy, but I also want to be invariant of zoom/aspect ratio changes.
Because of this invariant, I can't draw a circle as a line object (without redrawing it upon…

Jason S
- 184,598
- 164
- 608
- 970
5
votes
5 answers
"AttributeError: unexpected attribute 'plot_width' to figure, similar attributes are outer_width, width or min_width " with pandas_bokeh
I am trying to use pandas_bokeh to create a line graph with a pandas dataframe I call bucketed_df
import pandas_bokeh
pandas_bokeh.output_notebook()
bucketed_df.plot_bokeh(kind='line')
for some reason I get the error
AttributeError: unexpected…

Daniel Almeida
- 51
- 1
- 2
5
votes
1 answer
Plot table alongside sns.barplot
#read data into dataframe
con=pd.read_csv('testOutput.csv')
'''
testOutput.csv looks like :
Sample,Count
sample1,99.9
sample2, 96.6
'''
## set colours to increase with…

user1338194
- 267
- 1
- 4
- 17
5
votes
3 answers
Time slicing in Oracle/SQL
I have a large-ish Oracle table containing rows representing units of work, with columns for start time and end time in addition to other meta-data.
I need to generate usage graphs from this data, given some arbitrary filtering criteria and a…

Ryan Bright
- 3,495
- 21
- 20
5
votes
2 answers
How to plot square function with matplotlib
I have an list of values that alternate between 0 and 1, eg [0,1,0,1,0] and I want to graph them so they appear as a square wave using matplotlib for python. I have this so far:
input_amp = [1,0,1,0,1,0,1,0,1,0]
plt.plot(input_amp, marker='d',…

user35510
- 179
- 2
- 14
5
votes
4 answers
Why is cosine used to calculate the x values and sine the y values for an arc?
I'm trying to understand the math on this raphael.js demo:
http://raphaeljs.com/pie.js
Checkout the sector method:
function sector(cx, cy, r, startAngle, endAngle, params) {
var x1 = cx + r * Math.cos(-startAngle * rad),
x2 = cx + r *…

Bjorn
- 69,215
- 39
- 136
- 164
5
votes
3 answers
What is a good Javascript graphing library to use with GWT application?
Do you have any suggestions of graphing libraries to use with a GWT project? I need to graph a set of data points and several lines. Also some shading of the area under a line. I am open to suggestions of straight Javascript libraries or Java that I…

Andrew Hubbs
- 9,338
- 9
- 48
- 71