37,781 questions
2
votes
2
answers
148
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
27
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 ...
3
votes
2
answers
123
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)
...
1
vote
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
74
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 ...
2
votes
1
answer
76
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:
...
5
votes
2
answers
156
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 ...
0
votes
2
answers
183
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
51
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 ...
0
votes
1
answer
65
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
44
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
100
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 ...
2
votes
1
answer
58
views
R Meta analysis adjust x-scale and ticks
I am trying to create a forest plot for some meta-analyses I am conducting. I have been able to create the forest plot but I have been unable to use xlim() to adjust the x-axis scale, nor have I been ...
Tooling
0
votes
0
replies
43
views
Creating custom 3D plots with annotations confined to planes
I want to create a 3d plot that only shows data and annotations in the xy, xz, and yz planes. Especially, annotations should be fixed to these planes as well, and should not rotate out of them when ...