Questions tagged [x-axis]

For questions related to the formatting of the x-axis in a plot

332 questions
0
votes
1 answer

Ordering by time block - Pandas and Altair

I have data that I am visualizing that is categorized by time block. The column looks something like this: time column I ultimately want to get to a point where I can order my data by this time block on the x axis of my chart, while plotting the…
0
votes
0 answers

Grafana - Time Series Graph - Plotting graph using the date time range values of data points

I am new to Grafana and using 9.2.3 version of Grafana for plotting the graphs. I am trying to plot a time series graph where my query returns a data points which contains date time field starts from 2022-10-04 19:14:42.364851 and ends at 2022-10-04…
Kamal
  • 453
  • 1
  • 10
  • 22
0
votes
0 answers

Reshape(?) x scale

I made a figure in R, but if possible, I want to change the 'width' of the steps on the X-axis. I would like to make them smaller. This is the picture: I want to change the width of the red arrows, if possible. And this is my code in…
Yvonne
  • 21
  • 3
0
votes
1 answer

Broken x and y-axes in matplotlib

I am trying to plot broken y and x axis. I wrote a very basic code taking help from previous answered questions. However, I fail to understand why my plot is not taking the left of broken x-axis and down of broken y-axis. I am attaching my data file…
Masoom
  • 13
  • 3
0
votes
1 answer

How to change number of ticks in x-axis in JavaScript?

I have below scatter plot There should be 6 years [2017, 2018, 2019, 2020, 2021, 2022]. There are two problems: The string of years is not complete. There are 5 ticks instead of 6. Here is some part of my code: const xAxisG = g.append('g') …
0
votes
0 answers

How do I apply consistent scaling in my figure

I use the following function to plot feature importance of my model. def plot_feature_importance(imp_df): imp_df.columns = ['feature', 'feature_importance'] plt.figure(figsize=(15,16)) b = sns.barplot(x = 'feature_importance', y…
Amina Umar
  • 502
  • 1
  • 9
0
votes
0 answers

HighCharts acessing x-axis labels with jquery

I am new to working with HighCharts. I am working on a project that was started by someone else but not finished. In this project the user will have a chart that spans multiple days but only wants to use certain sections of it. The user wants to use…
wdcocom
  • 1
  • 1
0
votes
0 answers

Empty space before first date and after last date with plotly and filter_slider in R

Here is my code: both_df_sh <- dataset %>% SharedData$new(group = "boom") selector <- filter_slider(id = "selector1", label = "Date Range", sharedData = both_df_sh, column = ~date) v_p <- both_df_sh %>% plot_ly(x = ~date) %>% add_trace(y =…
0
votes
1 answer

Seaborn Align twinx and x Axis

I am trying to align X axis with its twin but I'm not finding a way to do it. Here is my code # Initialize the figure plt.figure(figsize=(16, 10)) # Adding a title plt.title(f'Client Retention Quarters: Monthly Cohorts', fontsize = 14) # Creating…
0
votes
1 answer

Can you (automatically) limit the X axis range in a datetime plot in Power BI

In Microsoft Power BI I have data with a datetime field where I plot the data in a histogram like below: Y axis is count and X axis is a datetime field Even though the data is only between Aug 21st and Sept 21 the graph X axis is Jan 1st to Dec…
LapplandsCohan
  • 706
  • 4
  • 13
  • 29
0
votes
1 answer

How do I customise my x-axis to reflect the true number of participants?

So I am trying to create a line graph which shows scores pre and post intervention for a number of participants. However, the number of participants does not reflect the x axis scale. For example (see picture) the x-axis goes from 2 to 7. But, I…
JacobHad
  • 33
  • 4
0
votes
0 answers

R geom_signif cannot plot the significance bar for no apparent reason, seems related to x scale setting

I wish to use geom_signif to plot the significance bars for my data which contains three treatment level, the test_df is…
Jujube
  • 3
  • 3
0
votes
1 answer

Add a "Plus Sign (+)" to a histogram axis using truncated data

I have some data with a long tail, which has been truncated for a histogram. I would like to add a simple "+" sign to the final value of the x-axis on the histogram. Below is an example showing the setup. sysuse auto gen price_graph = price replace…
amquack
  • 837
  • 10
  • 24
0
votes
2 answers

How to add exponent value to x title

Having issue adding space, I am using the following to name my x and y title. labs(y = "% biomass", x = expression(paste("Mulch amount", tha^{-1}))) It's resulting in no space between mulch amount and tha (making it Mulchamounttha(-1). Does anyone…
user20034926
0
votes
0 answers

plotly joins points in wrong order

I have the following df (part) "Date" "2022-09-01" "2022-09-02" "2022-09-05" "2022-09-06" "2022-09-07" "2022-09-08" .... "LogClose" 8.285728 8.274933 8.274933 8.270830 8.289004 8.295593 .... "wielkoscDD" 0.00000000 …