All Questions
1,610 questions
1
vote
1
answer
34
views
Adjusting X-axis labels in base R
I operate groundwater monitoring sensors for my job. They take a reading every 15 minutes. I pull the data once a month and add it to a running csv file I use to graph in RStudio.
I am having trouble ...
0
votes
1
answer
63
views
Log scale equivalent for values around 0
Is there a way to have a graph where axis are in a pseudo log scale for values between -1 and 1? I would like to have -1, -0.1, -0.01, 0, 0.01, 0.1, 1 to be equidistant on the axis.
What would be ...
2
votes
1
answer
35
views
How to force graph to stop displaying after a certain x-axis value
In Stata, how can I force the graph to stop displaying after a certain point on the x-axis?
For instance, say that I have:
sysuse auto2, clear
gen mid = (price + weight)/2
gen n = _n
twoway ///
...
2
votes
1
answer
60
views
chartjs 4.4 : not able to plot 2 time series in 1 graph
I have an issue with plotting 2 lines in 1 graph using chartjs: I get 2 graphs with 1 line in stead of 1 graph with 2 lines, and I think I made a very simpe error, but I can't find it. I have spend ...
3
votes
2
answers
56
views
Subplot four-pack under another subplot the size of the four-pack [duplicate]
I want to make a matplotlib figure that has two components:
A 2x2 "four pack" of subplots in the lower half of the figure
A subplot above the four pack that is the size of the four pack.
I ...
5
votes
3
answers
242
views
How can I save a figure to PDF with a specific page size and padding?
I have generated a matplotlib figure that I want to save to a PDF. So far, this is straightforward.
import matplotlib.pyplot as plt
x = [1, 2, 3, 4]
y = [3, 5, 4, 7]
plt.scatter(x, y)
plt.savefig(
...
1
vote
1
answer
64
views
R- Adding Centroids to Texture Points on Texture Triangle
I have a soil texture data set. I made a soil texture triangle representing soil texture from different projects.
I want to add a centroid to the texture triangle, but only for projects with different ...
0
votes
1
answer
65
views
Problem with settings scale breaks with ggplot2 in R
I'd like to make a line plot for longitudinal data in a design with two groups.
Since the group means range from 30-43 I want my plot to start at 28.
Nevertheless, I want the scale of the y-axis to ...
0
votes
0
answers
34
views
In a Python plotly bar chart, can I toggle discrete x-axis items in addition to a legend?
I have a plot like this that shows 'Metrics' across different 'Regions':
I can filter regions by clicking on the legend, and I can switch to showing individual metrics using the dropdown menu.
What I ...
1
vote
0
answers
81
views
Rotating matplotlib subplot with additional axes
I am currently struggling to create a 3-panel figure where the centre plot contains a contour plot and the top left and right panels show some lines. The thing is that all the plots are rotated 45 ...
0
votes
1
answer
59
views
How to plot linepoint in gnuplot such that the lines shouldn't pass through the points and points should be open squares or triangles(not solid)
I want to plot a linepoint plot where I need the line not to pass through the points. When the points are solid, whether the line passes through or not, it doesnot matter. But when the point-types are ...
0
votes
1
answer
34
views
how to use gnuplot with one x and several y
i need to make a plot from the file that have struct like that:
x1, y1, y2, y3, y4
x2, y1, y2, y3, y4
x3, y1, y2, y3, y4
I am tried something like
set datafile separator ','
but with that he make plot ...
0
votes
1
answer
37
views
How to make my ggplot2 line graph, that contains alternating color segments, not have small gaps at the bends?
My goal is to make a professional looking line graph in R with ggplot2.
My line graph has alternating colors based on the value in data$color. However, the line looks like blocky rectangular segments. ...
0
votes
0
answers
29
views
Why can't I toggle my custom legends on or off in Plotly?
I have a function that creates subplots with multiple axes on each subplot using custom code, as multiple axes are not currently supported. I can't paste all the code here as it is a lot, but, at a ...
0
votes
1
answer
64
views
Ignore text values from excel table while plotting data
I want to plot a table that has numerical and string values in it. I would like to generate a PDF but to professionally display it, I want all my string values (NM, N/A) as is without having the "...