Questions tagged [x-axis]

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

332 questions
0
votes
1 answer

How to show complete hourly date values in x axis values

I'm trying to create plot with x-axis as hourly data (step = 1 hour). Although I defined an x-data as array with hourly data, I've gotten x-values with 00:00 (see screenshot). import pandas as pd import matplotlib.mdates as mdates range_hour =…
jess
  • 81
  • 1
  • 7
0
votes
1 answer

Remove the x-axis spikes with empty labels in matplotlib

I have a plot in which I have to divide my data points into several groups, so I made customized sticks for this plot. For instance, I have to group data points into multiples of 12, this is what I did my_xticks = [] for x_ele in…
Hang Chen
  • 549
  • 1
  • 7
  • 18
0
votes
1 answer

Display stacked x-axis text field hierarchy instead of drill down in Power BI

I'm new to Power BI & am sure there's a simple answer, like a setting or something... Need to display all fields stacked in x-axis at once, instead of having to drill down through any layers. In excel pivot table it does this automatically (please…
5flatKat
  • 3
  • 3
0
votes
1 answer

Enforcing Incoming X-Axis Data to map with Static X-Axis - Plotly

I am trying to plot a multi-axes line graph in Plotly and my data is based on the percentage (y-axis) v/s date (x-axis). X and Y-axis coming from the database via pandas Now since Plotly doesn't understand the order of string date in the x-axis it…
Rishab
  • 33
  • 4
0
votes
4 answers

Can I use ggplot when I have created a time series data using the ts function

I have data that shows daily Covid cases and I used the ts function to convert the data into a time series. The issue is when I plot the data, the x-axis gives me this: 2021.1 2021.2 2021.3 and so on.... Since I want to look at 2021 respectively,…
ahad lone
  • 37
  • 5
0
votes
0 answers

Why ggplot plotting for some periods every five year and for other one every two years?

this is my second time asking question here. I hope I do it in a right way! I am plotting three subset of my data with ggplot and I am not putting any command for x-axis like every two years or something. My subsets data set are same size(they are…
Neg
  • 1
0
votes
0 answers

don't show scrollbar on the x-axis

I am learning for Nextjs and tailwind CSS. But, I have a problem with scrollbar. I want to have scrollbar on the x-axis This is my code

Live Anywhere

user15927449
0
votes
2 answers

chart.js how to make x-axis labels position top

I'm new to chart.js, and I have a question about making x-axis labels position to the top. This is the result that I expected: x-axis labels are on the top. And this is my attempt: const ctx = document.getElementById('weather_chart'); const…
chunzhi23
  • 59
  • 1
  • 5
0
votes
0 answers

About MPAndroidChart XAxis Label

My chart lineDataSet entry maybe has more than seven, but the xAxis Labels only have seven at most. I have setting: xAxis.setLabelCount(7, true),force is true. The X-axis label type is Date, corresponding to the Y-axis data. Although the labels are…
July Hey
  • 1
  • 1
0
votes
1 answer

Python: Set interval step of x-Axis dates

I have a .csv file of data of following form Date Company 1 Company 2 ... Company n 01.01.2021 100 20 ... 123 02.01.2021 50 1 ... 455 ... ... ... ... ... 8.11.2021 20 23 ... 122 My aim is to choose company x in a Combobox and…
Martin Kunze
  • 995
  • 6
  • 16
0
votes
0 answers

Adding year below month in X-Axis of bar

I would like to add year below the months in x-axis I want it be same font but bigger and centered. Something like this:
0
votes
1 answer

plot.bar(), duplicate values are removed in the x-axis?

I have as example the following DataFrame df and I want to plot the price as x-axis and share_1 and share_2 as y-axis in bar stacked form. I want to avoid using pandas.plot and rather using plt.bar and extract the x_values and y_values from the…
jess
  • 81
  • 1
  • 7
0
votes
0 answers

Too many dates on X axis- ggplot2

I have two questions. I am using a dataset detailing information on Chicago (temp, ozone, season, date). I would like a plot show the temperature across time, along with a smooth line to show the trend, specifically with dates isolated from…
Lior133
  • 13
  • 4
0
votes
1 answer

Year on x-axis is pinned to January on Matplotlib

I have a dataframe as follows. | Date| A | B | |-- | ---- | -- | | Jan-20| 205.0| 232.0 | Feb-20| 328.0 | 338.0 I turn the Date column into a datetime object, set it as the index and graph it. df['Date'] = pd.to_datetime(df['Date'],format="%b-%y")…
fent00
  • 31
  • 1
  • 7
0
votes
1 answer

How to just show hours and minutes - time - in a candlestick chart using matplotlib python

I am trying to plot a candlestick chart with matplotlib. I just want to show hours and minutes in x axis, but my code does not work. My input list is like this: ['17:00',355.750,567.05,147.00,146.99]. My code: import pandas as pd import numpy as…
Johnny
  • 13
  • 6