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 * Math.cos(-endAngle * rad),
y1 = cy + r * Math.sin(-startAngle * rad),
y2 ...
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 differently?
...
Hello,
is there any documentation available to build Flot graph similar to what we can find in the SO profile/reputation tab?
from the source code I can see that data is queried at this address: /users/rep-graph/341106/" + ranges.xaxis.from.toFixed(1) + "/" + ranges.xaxis.to.toFixed(1) but I don't know the values from and to fields i...
I already have my xy graph using the line graph. What troubles me is how can I ask matlab to give me the value of y if I give the value of x. That is, the corresponding value of y when I give x in the line I have in the graph.
...
Is there any form of module in Python that will allow me to take mathematical equations for lines, arcs, and such, and graph them out on a plot? Basically a module that'll take my values and plot them on a graph with both an X and a Y coordinate (also the option of adding a Z coordinate would be nice too).
Something like this?
...
Hi again all,
I have another newbie question;
lets say i have a set of numbers
graph_val <- c(4,2,3,4,1,1,9)
and i need to create a frequency table of them against this scale
1 2 3 4 5 9
"Very Poor" "Poor" "Average" "Good" "Very Good" "Don't Know" ...
I've written a simple graphing implementation in C#, and I can graph things by comparing each pixel to the position on the graph it represents and plugging that position into the function I have to see if it is on the curve. That's all well and good.
The problem I'm having is USING a generated taylor polynomial. For example, I am able t...
I have a graph of memory use over time which looks like:
I set the y-axis: { max:n } value n to 1024 (which means 1024MB of RAM).
How do I get Flot to change the y-axis labels so they display:
1024
768
512
256
128
0
...
I have a graph, generated by a function, and it zooms itself in and out automatically, depending on the value of the function. I already have the graphing tools and I can display any x,y,width,height at high resolution.
I tried just snapping to the right spot:
x = target_x
y = target_y
width = target_width
height = target_height
But...