Questions tagged [x-axis]

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

332 questions
1
vote
0 answers

How to set multi line XAxis values in Combined Chart (MPAndroidChart)?

How to set multi line XAxis values in Combined Chart with StackChart (MPAndroidChart) ?? XAxisRenderer is not working on Combined Chart with StackChart
1
vote
1 answer

How to set the x-axis order with pandas using matplotlib 2.1.2

I would like the plot to show, from left to right on the x axis, an increasing line. So, the x axis needs to be in this order: J H G C A B E F D I K L Then the line would be increasing from left to right. df1 = pd.DataFrame({'Col1': ['A', 'B', 'C',…
BuJay
  • 115
  • 1
  • 12
1
vote
1 answer

Years as a logarithmic scale on the x-axis with matplotlib

I would like to plot dates on the x-axis using a logarithmic scale, such as in the example below, but I couldn't manage to get the correct spacing:
mavetek
  • 13
  • 2
1
vote
1 answer

How to remove repeating and empty or unmarked values on subplot of x-axis

I'm developing a set of graphs to paint some Pandas DataFrame values. For that I'm using various pandas, numpy and matplotlib modules and functions using the following code: import pandas as pd import numpy as np from matplotlib import…
MayEncoding
  • 87
  • 1
  • 12
1
vote
1 answer

How to move / align X-axis title on multiple charts with Altair?

I have the 3 charts below and I would like to vertically align the X-axis title of the third chart ("Autres") with the two others My code is the following ... base = alt.Chart(data).properties( width=250, …
Bebio
  • 409
  • 5
  • 12
1
vote
3 answers

x-axis should be time-proportional in SAS

I need to present a linear x-axis, which means that distance between timepoints needs to be time-proportional. I have done the following code: /*Produce mean +/- SD plot with line graph*/ proc sgplot data=adpc; vline hours /response=value…
Gwendoline
  • 33
  • 4
1
vote
1 answer

How to facet wrap plots with two different factors

For example, i have two trials, each with main factors of year and treatment. I want to plot response to the same plot, preferably Trial one / treatment / year and the same for trial 2. Closest that i can get is shown on the simple example picture.…
Ales Kolma
  • 27
  • 4
1
vote
3 answers

How to master x-axis breaks in ggplot?

recently I am working a lot with ggplot2. I like the tool for its flexibility and syntax. Nevertheless I get into trouble, when working with x-axis scales representing a weekly time series. The biggest problem is to get the breaks that I want in…
Leonhard Geisler
  • 506
  • 3
  • 15
1
vote
1 answer

How to make dates in x-axis equidistant in ggplot2 (geom_area) and format date as "%d %b %Y"

I have a recurrent problem driving me nuts ... I am plotting a ggplot2 using '''geom_area''' with my x-axis as dates. I am trying to separate the dates into equal distances between each other, but I cannot see how... I am attaching my dummy data.…
Irene
  • 35
  • 4
1
vote
0 answers

How to set x-axis size in seaborn Pairplot

I am using Seaborn to draw Pairplots. Problem is that, for some variables, size of x-axis is small and data points are very close to each other, as can be seen below (first row of plots): As you can see, plots in the second row are fine. This is…
Mohammad
  • 775
  • 1
  • 14
  • 37
1
vote
0 answers

how do I avoid the overlapping error bars and replace X and Y axis?

I am new to matplotlib and I am asking for your help to solve my little problem. I am sharing the graph below, here are the questions: 1- I want x-axis and y-axis replace 2- And most important for me is that errorbars should be horizontal (in graph…
1
vote
1 answer

Is there a layer using ggplot2 in R to customise the x-axis?

I'm trying to create an x-axis that decreases then increases. It's for a lab where we cooled down shrimp and counted the pleopod beats every 2C change. Here's one set of the data: Temperature Starved Individual…
1
vote
0 answers

Python Plot X axis value

i got a data of year,month,day and value CSV enter image description here then i try to convert the year,month and day into dataframe WTS_clean['dateInt']=WTS_clean['Year'].astype(str) + WTS_clean['Month'].astype(str).str.zfill(2)+…
1
vote
1 answer

Automatically set data representative breaks in ggplot with facet_grid

Here's a reproductible example taken from the R Graph Gallery: library(ggplot2) library(dplyr) library(viridis) library(Interpol.T) library(lubridate) library(ggExtra) library(tidyr) data <- data(Trentino_hourly_T,package =…
1
vote
1 answer

ggplot time series: messed up x axis for data with missing values

I am creating time series plot for the following data: # Creating data set year <- c(rep(2018,4), rep(2019,4), rep(2020,4)) month_1 <- c(2, 3, 7, 8, 6, 10, 11, 12, 5, 7, 8, 12) avg_dlt_calc <- c(10, 20, 11, 21, 13, 7, 10, 15, 9, 14, 16,…
Iraleksa
  • 155
  • 1
  • 9