# 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.

**0**

votes

**1**answer

28 views

### How to label x&y values using string and numbers at the same time in a graph on Python

I am trying to understand graphing using Python. I want to understand what do "x_values" do in the following code and how does it work. I tried to change the numbers to see what it does affect to, but ...

**1**

vote

**1**answer

21 views

### How do you correct the y-intervals when graphing a list(not in order) using matplotlib library?

The y values are not in order when graphed
The COLst3 is a list of numbers that are not in order. A sample COLst3 list:
['312', '313', '313', '312', '311', '313', '311', '311', '311', '310']
The x-...

**-1**

votes

**0**answers

21 views

### How to create horizontal bar-chart for project dates in R (or python)?

I have an excel document with a bunch of project timelines and 5 steps in each project. For each step, there is is a day for when it is needed by and the day that it has been completed (if it has been ...

**0**

votes

**0**answers

10 views

### How to change arrow size in Sigma.js?

I'm trying to draw a directed (arrowed) graph but the arrows are so small you can barely see them.
function addArrowToGraph(src, dst) {
s.kill();
g.edges.push({
id: 'e' + g.edges....

**0**

votes

**0**answers

21 views

### Fill overlapping plot area for graphs with different x-axis scales

I am trying to fill the overlapping area of two graphs with different x-axis scales.
Can this be done using built in functions like fill_betweenx()?
fig, axs = plt.subplots(1, 2, sharey=True)
...
...

**-1**

votes

**0**answers

15 views

### Can't figure out why matplotlib functions aren't applying to graph?

I'm working on some research stuff and got the plot about to what I needed but the axes labeling just isn't working no matter what I've tried (plt.xlabel(),plt.ylabel(), ax.set_xlabel(),ax.set_ylabel()...

**1**

vote

**1**answer

51 views

### Looking for a way to speed up real time plotting in pyqtgraph

In short, I'm trying to find a faster way to plot real time data coming through a serial input. The data looks like a coordinate (x,y) and about 40 are coming in each second. The stream will store the ...

**-1**

votes

**1**answer

37 views

### How to graph a python frequency dictionary?

I am trying to graph a word frequency dict I have created, the dictionary structure is like:
OrderedDict([('abc', 367), ('abc', 312), ('abc', 286), ('abc', 57)])
However when running in Jupyer ...

**0**

votes

**0**answers

19 views

### Graphing in Python using data from .csv and two index columns

I've got data about
various state characteristics over 11 years in a csv. I've loaded it into python using "State" and "Year" as index_col. I'm trying to create a graphs for each state with the x ...

**0**

votes

**2**answers

42 views

### Plotting exponential graphs in matplotlib - ytick spacing

I'm fairly new to matplotlib and graphing in general, so I'm sorry if this problem sounds trivial.
I'm trying to plot a line graph with following x and y values.
x_values = [18, 19, 20, 21, 22, 23, ...

**0**

votes

**0**answers

13 views

### Graph results of performance testing matrix

I'm trying to find the best way to graph multi-dimensional performance data. for 2 versions of a function, that take the same parameters.
Given 2 versions of a function: f(flag: bool, x: int, y: int)
...

**0**

votes

**0**answers

17 views

### How do I replicate this (Multiple set) scatter plot with trendlines using VBA?

While I am familiar with VBA, this problem is a little outside of my wheelhouse. I am trying to replicate the attached graph for each of the 112 columns in my excel data. I am willing to learn if ...

**1**

vote

**1**answer

33 views

### How to show chart type of each Y-axis to distinguish compared factors

When comparing two different Y variables, there is no real way of knowing which chart type belongs to which Y-Axis. I need a legend that says which chart type belongs to which data set.
With help ...

**0**

votes

**1**answer

22 views

### How can I modify code with subplots into a live animation?

I have recently moved back into learning python for its use of matplotlib and ability to plot data nicely.
I decided to give myself a basic project to plot two visualisations. The first would be the ...

**0**

votes

**1**answer

18 views

### Adding error bars to a line graph with ggplot2 in R

I have three y values corresponding to three x values. I just want to have a line graph between these three dots
g <- c("1","2","3")
i <- c(181.83,178.74,152.02)
df <- data.frame(g,i)
p <-...

**0**

votes

**1**answer

20 views

### Italicize and color legend manually for different graphs using same labels and colors

I am trying to create multiple graphs that share the same legend.
I have found many ways to combine multiple graphs and it seems that ggarrange has the ability to create one shared legend for all ...

**0**

votes

**2**answers

26 views

### 3d Graphing Application Questions

For one of my classes, I made a 3D graphing application (using Visual Basic). It takes in a string (z=f(x,y)) as input, parses it into RPN notation, then evaluates and graphs the equation. While it ...

**3**

votes

**2**answers

41 views

### Plotting line graph over scatter graph

I am aware of how to plot a line graph on top of scatter plot of the same data but is there a way to bring the line graph forward so it sits on top of the markers rather than behind?
Example code:
...

**-2**

votes

**1**answer

45 views

### How to create a horizontal bar graph graphing number ranges?

Does anyone know how to go about creating a horizontal bar graph that graphs number ranges? By which I mean the graphed values do not start at 0 on the x axis 0 and stop at another singular number but ...

**1**

vote

**2**answers

64 views

### Likert style plot split out by levels within a factor

I want to create a Likert plot which looks like this:
I have two columns in my dataframe - Age and Overall Satisfaction, both of which are factors. There is an uneven number of individuals in each ...

**0**

votes

**1**answer

56 views

### Why does r (r code) give me jagged line in my graph?

LocA<-(Graphdata[["Loc==AB"]])
plot(0, 0, xlim = c(1, 20), ylim = c(70, 200), asp=NA, xlab = "", ylab = "", type = "n")
lines(LocA$K,type="l",col="blue",lwd=2)
lines(LocA$L,type="l",col="green",lwd=...

**0**

votes

**0**answers

17 views

### Trying To Make A Table, Strange Tab Spacing

I am attempting to write a program that creates a table based on parameters given by the user that describe a graph. I am merely a beginner in Java and am just starting out, so if I am using ...

**0**

votes

**1**answer

62 views

### Histogram with normal curve and error bars in R

#import data
data = diameters$V1
error = .005 #mm
#make histogram
h <- hist(data, breaks = "FD", density = 10,
col = "lightblue", xlab = "Diameter", main = "Overall") ...

**1**

vote

**1**answer

64 views

### Graphing using r and points (pch)

What happens to my R-code? I don't want to see the bar graph and I want to see only the plotting characters (pch):
plot(Graphdata$Sites,ylim=c(-1,2.5), xlab="sites",
ylab="density frequency"...

**1**

vote

**3**answers

180 views

### How to plot certain columns in R [xts]?

I have a some data that looks like this:
https://imgur.com/a/UK64GCp
And I am plotting it using:
plot(fifty_twoweekmovavg)
pdf("52_week_moving_average_chartNSW.pdf",onefile=TRUE)
addLegend("topleft",...

**0**

votes

**0**answers

12 views

### Python: Real-Time Plotting Y axis Problem [duplicate]

I'm currently trying to plot some data in real-time from a sensor. Unfortunately, No matter how many different methods I use, be it plot(x,y), animation, or drawnow. I am constantly running into this ...

**1**

vote

**1**answer

63 views

### How do I convert the x and y values in polar form from these coupled ODEs to to cartesian form and graph them?

I have written this code to model the motion of a spring pendulum
import numpy as np
from scipy.integrate import odeint
from numpy import sin, cos, pi, array
import matplotlib.pyplot as plt
...

**2**

votes

**1**answer

32 views

### Pyplot scatterplot interfering with line

So I have a list of numbers as well as the mean and standard deviation of this list. I am attempting to plot the numbers as x values and then plot the lists standard distribution on the same graph ...

**1**

vote

**1**answer

36 views

### Graphing a multi variable function in MATLAB

I have never used MATLAB before, so I am very lost. For my calculus class, we were tasked with finding a certain function and then using MATLAB to graph it. Finding the function was no problem. ...

**1**

vote

**1**answer

62 views

### Shading in ggplot

This is the data set:
structure(list(Date2 = structure(c(17702, 17703,
17704, 17705,
17707, 17711, 17715, 17716, 17716, 17716, 17717,
17719, 17722,
17728, 17736, 17738, 17738, 17738, 17739, ...

**0**

votes

**0**answers

17 views

### Graphing continuously with multiple files.

I have multiple csv files that I processing then plotting in terms of date-time vs some other parameter. Each file represents a day (but not continuous) and I am looping through about 100 of these ...

**2**

votes

**1**answer

40 views

### Transparent Custom Graphing User Control: Turning Black on Runtime

I have a custom graphing usercontrol which has support for transparent backcolor. During design, the usercontrol shows properly. However, on runtime, the backcolor turns black.
I have searched ...

**1**

vote

**1**answer

283 views

### Python Matplotlib: Set axis as increments with respect to one value

Some times when a plot is zoomed in enough the axis change so showing something like this
which means that the x value is, in this case 1.565 + the value showed in the tick.
Is there a way to set ...

**0**

votes

**2**answers

616 views

### How To Graph Points With Sympy?

I need to calculate and graph a function and it's first two derivatives. Then, I need to graph the minimum and maximum points of the original function on the graph. I have calculated these, but am ...

**0**

votes

**1**answer

33 views

### Excel - How do I delete some names in the legend?

I want to remove some names that are in the legend of an excel graph. For example, instead of showing all of Series 1, Series 2, Series 3, etc., only Series 1 is mentioned in the legend. Thank you.

**0**

votes

**1**answer

38 views

### What is the equation of this line in Python simple plot?

Please help me figure out what the equation for this line is:
import matplotlib.pyplot as plt
import numpy as np
#start, stop, num (* is args [positional], ** is kwargs[keyword])
x = np.linspace(0, ...

**1**

vote

**1**answer

66 views

### Shading between lines in ggplot

I have a data set, and I am able to plot the data set fine, however, I have three lines on my graph and I want to shade between them (So two shading regions).
ZNH2<-structure(list(value = c("...

**0**

votes

**0**answers

6 views

### How to add a custom point to a plot on Rstudio

How would you add a custom shape as a point to a plot, something that is not in the pch library, like a more complex polygon shape?

**0**

votes

**1**answer

35 views

### JFreeChart initial 'zoom'

I am using JFreeChart 1.0.19 to create a timeseries graph. The graph contains both positive and negative values, however when the graph is initially displayed the Y axis always baselines to 0, and ...

**1**

vote

**1**answer

40 views

### XData size error for 3D Plotting in Matlab

G =
graph with properties:
Edges: [4782×2 table]
Nodes: [692×0 table]
>> plot(G, 'XData', x1, 'YData', y1, 'ZData', z1)
Error using matlab.graphics.chart.primitive.GraphPlot
...

**0**

votes

**1**answer

43 views

### How to create a circle and line on a graph in C#?

Need to create a graph in Visual Studio that graphs based on an input of y=mx+c or r=(x+a)^2+(y+b)^2.
I am fairly inexperienced in C# and need help. If it is possible through a library or however. ...

**1**

vote

**1**answer

102 views

### Matlab Horizontal Bar Double Graph

I made in Matlab a horizontal bar plot, with a bar coming from left to right:
Horizontal Single Bar Plot
I would like to add an additional horizontal bar, on the same horizontal plan of the ...

**1**

vote

**1**answer

109 views

### On the browser, how to plot 100k series with 64-128 points each?

I want to graph about 120k series, each of them having 64 points (down sampled, 128-512 points if using the real sampling rate, which is even larger)
I have attempted to do it with dygraph but it ...

**0**

votes

**1**answer

64 views

### How to display Graphics2D object on JFrame

This is my first time trying to build a GUI and I've reached an impasse which I can't seem to find the solution to. Currently I have parts of my GUI set up but I want to insert a graph I've created on ...

**0**

votes

**0**answers

21 views

### Graphing in R, using max values found from different excel files

This code is first reading data from 12 excel files. In each file, for different rows 1,3,5,7,9,11 (patients), the average of 60 values is taken for each row. Then, the maximum average from the 12 ...

**1**

vote

**1**answer

58 views

### How to plot a graph in the form f(y) + f(x) = c

This applies to P5JS, but I am interested in a general solution as well. I currently have a graphing program where one can enter an equation in the form y = f(x). This could be y = x^2, y = sin(x+5), ...

**-1**

votes

**2**answers

73 views

### Comparing mean values by group between several variables

I am trying to reproduce a graph from Stata in R. I have several variables and want to display their mean in each treatment group of which there are two. The Stata graph is as follows:
This ...

**1**

vote

**1**answer

118 views

### How can I sum column values from a table view and display it in a label in Google Charts?

So, I have a table that changes according to a String filter. This table has a column that shows some credit values in rows. How can I sum the values according to what it's displaying in my table and ...

**1**

vote

**1**answer

101 views

### Creating a Histogram of the digits of Pi

I'm having trouble plotting a histogram of the distribution of the first million digits of Pi.
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
# import pandas as pd
"""
...

**1**

vote

**1**answer

27 views

### How can I filter two charts with different ways to get data with the same string filter?

here's my code:
google.charts.load('current', {'packages':['corechart', 'controls']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google....