37,778 questions
Score of 2
1 answer
89 views
Plot grid shifted against data points
I have defined a plotting method (in a class, where self.steps is a list of lists of dictionaries, containing different "feature": value associations. Also self.path_alignments here is a ...
Score of -1
0 answers
63 views
Piecewise SEM pathway plotting
I want to visualize my piecewise SEM models which have 5 exogenous climate variables, 3 tree physiological mediators and one tree growth response variable. I attempted at it manually, but I would like ...
Score of 2
2 answers
156 views
facet_wrap and ggplot2 - borders different thicknesses
I have an issue with facet wrapping my data and the borders of the plots being visibly different thicknesses. And I'm not sure what is causing it.
My code for my plot is here. I've used facet_wrap2 ...
Best practices
0
votes
0
replies
29
views
Updating LIVE candlesticks in realtime
In realtime systems, older updates (ticks) from data providers may sometimes arrive later than newer ticks. usually within a few hundred milliseconds. Should such a tick be discarded or used to update ...
Score of 3
2 answers
127 views
How to visualize a dense, gappy time series with spikes in Python?
I have a sensor time series with these properties:
~250,000 data points at high sampling rate over ~12 hours
~11 continuous segments separated by 30-40 minute gaps (sensor goes offline periodically)
...
Score of 1
0 answers
137 views
python trying to plot a DFA with networkx and matplotlib
Hi I was trying to implement a plot function for a DFA class, using networkx in python.
def plot(self):
G = nx.MultiDiGraph()
nodes = self.collect_nodes()
for n in nodes:
...
Advice
1
vote
1
replies
77
views
How can I insert a custom symbol between y‑axis tick labels in Matplotlib?
I have a plot with categorical labels on the y‑axis, similar to this:
I would like to display a symbol (e.g., +) between every pair of y‑axis tick labels, such as between eight and eight u two.
Is it ...
Score of 2
1 answer
80 views
Facet label spacing and annotation positioning in forest plot
I am creating a forest plot using ggplot2 and ggforestplot, and I am having two formatting issues:
Facet label overlap
I want facet labels like: APOE ε2 effects However, my current labels:
...
Score of 5
2 answers
160 views
Fixing plotting artifacts when using plt.xscale('symlog')
How to fix these kinks in the norm_pan and norm_tau curves? I tried using a quite high resolution and logarithmic spacing when defining t, but this did not fix the problem.
import numpy as np
import ...
Score of 0
2 answers
192 views
Getting rid of warning messages when using ggplot2 and ggfortify R packages
I am plotting residual plots to check assumptions for a general linear model using both ggplot2 and ggfortify R packages but I keeping getting warning messages which I am not sure how to get rid off. ...
Tooling
0
votes
1
replies
52
views
Saving plot from grid.arrange() as file with text
I made a plot with ggplot2 and grid.arrange() and I wish to save the plot I made, but while keeping the axis titles I added manually with grid.arrange() (bottom = "text", left = "text&...
Advice
2
votes
1
replies
95
views
2 dimensional version of "pretty" in R
In R it is generally convenient to use a function like "pretty" when deciding intervals to plot in a graph that are useful and readable to the general audience. In R if you are producing a ...
Score of 0
1 answer
70 views
Plot limited domain for equation in Geogebra
In GeoGebra is there a method to plot only a portion of a curve defined by an equation? In other words if I want to plot only the first quadrant of the equation of a circle x^2+y^2=1, is there a way ...
Advice
1
vote
0
replies
46
views
Averaging results for sound intensity
I have 8 files all 13 minutes long for measuring sound intensity. I need to calculate the average every 5 seconds for each file, any idea how to do this in a fast or efficient manner?
I have no idea ...
Best practices
0
votes
2
replies
102
views
How do I implement a cylindrical grid for a 3D plot?
I want to plot a 3D curve showing the X-Y grid in polar coordinates. Here's a sketch
and my script that generated it:
from math import cos, cosh, floor, pi, sin, sinh
import matplotlib.pyplot as ...