For questions related to the formatting of the x-axis in a plot
Questions tagged [x-axis]
332 questions
0
votes
0 answers
Scatter chartjs keep pushing double values
My scatter chart keep pushing double values, I am using onchange="" and doing per user input to update the x-value in my HTML.
Here is the screenshots. User input x-values here is my chart problem, the 2nd and 3rd data keeps plotting on my first…

RottenPotatoes
- 39
- 9
0
votes
0 answers
Why is R ggplot refusing to add custom breaks below 100 to the x-axis?
I have a geom_point graph that plots a bad x-axis, I am trying to add manual breaks, which works perfectly until I try a break under the value of 100. Anything above that works fine, but it just won't add them below 100, I get no error message.
A…
0
votes
0 answers
How I can hide some x axis labels in seaborn time-series plot?
I'm using sns.scatterplot and sns.lineplot to show my time-series data (1-min interval CO2 concentration). I have almost 1 month datasets which makes the x-axis very packed (since I have 40'000 datapoint).
the data starts 2022-05-02 00:00 and ends…

Yunni
- 15
- 2
0
votes
1 answer
how to format radians units in x axis in MATLAB?
I have a data file of 77*1 which is changing based on radians. I plotted my data and its ok in terms of figure itself. however, the x axis turned to be some random numbers. How can I define the thick labels in x axis to be in radians instead of…

ARAZ
- 5
- 2
0
votes
0 answers
ggplot: combining group in x axis
I would like to create a bar plot with ggplot like attached excel image. It is qPCR data in biology. and the data looks like second image. Is it possible to make like images?
Thanks for your help!!
I edited my question and body. Please help…

YS NAM
- 11
- 1
0
votes
1 answer
remove xAxis label of vertical crosshair in highchart highstock
i have a highstock chart with multiple series, each one has it's own tooltip(shared:false), after hovering mouse, a label appear on xAxis, how to get ride of it?
{
xAxis: {
crosshair: false
},
tooltip: {
…

shahrooz bazrafshan
- 545
- 4
- 17
0
votes
1 answer
Time series from a DataFrame in PyQtGraph
I am developing an application which is to graph values from a DataFrame using PyQtGraph.
The issues I am having have to do with the custom X-axis, which is to display the selected interval from the TimeStamp in the dataframe with the exact…

SomewhatInterested
- 21
- 3
0
votes
2 answers
GNUplot Convert Samples or file lines to minutes, hours, miles or some other x-Axis variable
The question was somewhat generic but it could be used in many ways. We all use GNUplot to plot data over the samples recorded in a file.
There is a data logger that records a measurement once per second. ( So a file that is an hour long has 3600…

cdavisccllc
- 1
- 1
0
votes
1 answer
Plotting a Bar chart using ggplot2
I tried plotting a barchart with variables "week_day "from my dataframe. The variable contains days of the week.
This is the code I used:
ggplot(data=df_activity)+geom_bar(mapping = aes(x=week_day,color=Totalhrs),fill= "blue")+
labs(title ="Total…

Mimikul
- 3
- 1
0
votes
1 answer
Distance between ticks in the X axis when plotting time-series in R
I am trying to plot a time serie in R using the code below. I need to plot one tick by month but I obtain to many ticks. How can I solve this?
library(readxl)
dataset <- read_excel(choose.files())
dataset <- data.frame(dataset)
dataset$Inicio <-…

sermomon
- 254
- 1
- 11
0
votes
2 answers
Can we make the ticks width non linear in ggplot2?
I am trying to plot the US yield curve on a graph but I would like the ticks of the x-axis to be nearer until 1 year, then normal. I have not found how to solve it. Does anyone know?
My data set is :
Interest
February
August
1…

jx21
- 50
- 6
0
votes
0 answers
Recharts bar label inner padding from top
I'm using recharts and trying to use the position property of the label object in the Bar component to set the label at the top-inner position but I couldn't find the correct approach for it.
code:

Ar26
- 949
- 1
- 12
- 29
0
votes
1 answer
create own x-axis graduation
I'm looking to adapt the x-scale of my graph with the ggplot2 library
Here is a example of what I mean:
example <- data.frame(a = 1:2000, b = rnorm(n = 2000))
ggplot(example,aes(a,b)) + geom_point() + scale_x_continuous(n.breaks = 5)
Giving me this…

noehanciaux
- 17
- 3
0
votes
0 answers
How to order categorical x axis of seaborn plot based on author-defined categorical order?
This seems like it should be so simple but none of the online solutions work for me.
This is my code so far
sns.histplot(dataset['How long have you been cycling in Dublin?'], color="c", alpha=.6)
plt.title('How long have you been cycling in…

speck
- 31
- 4
0
votes
1 answer
How to fix the y-axis in matplotlib when creating a barchart such that it is in a descending order?
Barchart should be plotted like this:
Axie Infinity: $4,074,436,594
Crypto Punks: $2,265,241,216
Bored Ape Yacht Club: $2,221,448,934
Mutant Ape Yacht Club: $1,566,494,617
Art Blocks: $1,265,723,876

Diong
- 1
- 1