Questions tagged [graphing]

A diagram that exhibits a relationship, between two sets of numbers as a set of points having coordinates determined by the relationship.

680 questions
9
votes
2 answers

Polar contour plot in Matplotlib

I have a set of data that I want to use to produce a contour plot in polar co-ordinates using Matplotlib. My data is the following: theta - 1D array of angle values radius - 1D array of radius values value - 1D array of values that I want to use…
robintw
  • 27,571
  • 51
  • 138
  • 205
9
votes
3 answers

R plot filled.contour() output in ggpplot2

I want to plot this figure created with filled.contour(), but in ggplot2, how do I do this? I want to use ggplot2 because the graphing conventions are easier. The reason I want to use filled.contour() is because I tried geom_tile() and image.plot()…
Roseanna
  • 133
  • 1
  • 1
  • 7
9
votes
2 answers

Matplotlib Python Stealing Screen Focus

my code is taking serial data from an arduino, processing it, and then plotting it. I am using matplotlib as the graphics interface. Every time it 'draws' though it forces attention to it, and a user won't be able to look at anything besides that.…
9
votes
4 answers

Calculating the slope of a series of values

I have 2 arrays of equal length. The following function attempts to calculate the slope using these arrays. It returns the average of the slope between each points. For the following data set, I seem to be getting different values than Excel and…
Nyx
  • 1,273
  • 6
  • 19
  • 32
8
votes
3 answers

Updating dataSet with flot resets data

I've got a flot chart that I want to dynamically update via AJAX. I can render the chart initially, but whenever I try to update the dataSet and redraw the chart, it resets all my data points: plot.setData(dataSet); plot.draw(); I have…
Jon
  • 1,337
  • 1
  • 14
  • 32
8
votes
2 answers

Figure title (suptitle()) disappears if you specify figure size in Matplotlib

Take, for instance, this code sample: import numpy as np import matplotlib.pyplot as plt f = np.random.random(100) g = np.random.random(100) fig = plt.figure(figsize=(15,15)) fig.suptitle('Long Suptitle',…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
7
votes
5 answers

Cubic spline extrapolation

I have a nice cubic spline code but it is for interpolation only. I need to extrapolate just a little into the future. Does anyone know of a good source of code, not a library, for doing this? This is the code I wrote in basic (now ASM) for…
Mike Trader
  • 8,564
  • 13
  • 55
  • 66
7
votes
1 answer

Cubic Hermite Spline behaving strangely

I'm attempting to draw a graph using Cubic Hermite Splines. I grabbed the simple code to do so from this interpolation methods page. Here is my code: private float HermiteInterpolate(float y0, float y1, float y2, float y3, float mu) { var mu2 =…
Snea
  • 1,867
  • 2
  • 14
  • 21
7
votes
1 answer

Add statistical information to the bottom of a graph

I am try to add statistical information (min, max, quartile values, mean, median etc) regarding a given distribution to the bottom a graph (histogram, time series plot) in R. I know the stats can be generated using the summary() function. However,…
MNaughton
  • 73
  • 1
  • 3
7
votes
2 answers

Y Axis Values Out of Order on Plotly Graph Python

I am using AlphaVantage API to download data points, which I then convert to a pandas DataFrame. I want to plot the new DataFrame with a Scatter/Line graph using Plotly. The graphs seems to come out perfect when plotting them in Google Colab,…
ManikRonin
  • 211
  • 2
  • 6
7
votes
4 answers

Draw square with polar coordinates

I have a square, where the closest points are 1 unit away from the center. See my ascii diagram below: +-----------+ | | | x | |-----+ | | | | | +-----------+ Therefore, the distance from the origin to the…
Joel
  • 2,654
  • 6
  • 31
  • 46
7
votes
1 answer

ggplot2 - Graph with line and dots for two data sets legend issues

I'm graphing two data sets with ggplot. One should be a line, the other should be points. I can get this working as below: d1 <- filter(d, variable==lineVar) d2 <- filter(d, variable==dotVar) g <- ggplot(d1, aes(clarity, x=xv, y=yv)) g <- g +…
David Terei
  • 1,985
  • 16
  • 18
7
votes
0 answers

Android GraphView Realtime app lags

I'm using GraphView in Android to plot realtime data (ECG), received from Bluetooth (BLE) connected sensor. After a while (5-10 sec = 500-1000 points) the application becomes extremely slow and laggy. The output data rate of the sensor is 100Hz and…
7
votes
4 answers

d3 seems to assume I know the column names of a csv?

I have csv files that are generated, and I am trying to load them into d3 to graph them. The column names are based on the data, so I essentially can't know them in advance. With testing, I am able to load this data and graph it all well and nice if…
cdietschrun
  • 1,623
  • 6
  • 23
  • 39
6
votes
1 answer

Setting axis intervals in ggplot

I have searched for this and can't believe I can't find it. Perhaps I've been asking the wrong question. I have a set of data laid out in a histogram that has a xlim of $2,000,000. I am trying to set an interval of $100,000 for the breaks (rather…
indigo
  • 1,067
  • 4
  • 15
  • 26
1 2
3
45 46