Questions tagged [axis-labels]

The labels on any axis of a plot

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

JAVA WEKA Reverse Y-Axis In Graph

I am using WEKA in a JAVA program and I want to output a graph with the Y-axis reversed (Top of axiz is 0 and bottom is the max value of the data). I am currently doing the following to display the ...
0
votes
1answer
31 views

How to make y-scales in ggplot in R follow similar numbering format?

I would like to change the format of the y-axis numbers such that the axis-es follow similar numbering format. right now Facet A is plain while Facet B is scientific. I understand there are large ...
0
votes
1answer
48 views

how to add a long directional arrow after the text in xlab ggplot2?

I would like to add an arrow after the text in xlab using ggplot2. Here is an example of a code below where I try to do it but adding dotted lines and signs but it is not very aesthetic. ggplot(data=...
-1
votes
0answers
16 views

How to change the values in both axis in Matplotlib Python? [duplicate]

I have the following plot generated by using Matplotlib in Python: I want to change the values in x- and y-axis by adding an offset of 500. Thus, the origin would be (500,500) and both axis would go ...
3
votes
2answers
64 views

Conditional change of axis.text font family and font size creates unwanted 'gap'

I need to change the family and size of a specific x-axis element of a barplot, based on a condition. I can successfully modify face using: library(ggplot2) ggplot(iris, aes(Species, Petal.Length)) ...
2
votes
1answer
41 views

How to plot non-consecutive time-series axis with QtCharts?

I need to plot a chart, whose axis X has data type of date-time. I'm trying to use QtCharts to do so, but I find that QtCharts::QDateTimeAxis can only process consecutive data(the X axis is ...
1
vote
1answer
42 views

Altair- Display All Axis Ticks But Only Some Tick Labels

I'm stumped on how to display ticks for all x-axis values but only labels for some. The x-axis values in my chart are 0.0 - 3.0 in tenths, whereas I only want to display labels for the whole numbers (...
1
vote
1answer
48 views

Matplotlib: Personalize x-axis

I have the results of a computation and I am trying to plot it with a personalized x-axis. import numpy as np import math import matplotlib.pyplot as plt maxPar = 100 minPar = 6 step = 1 ...
0
votes
1answer
24 views

Highchart - change the minor spacing for linear guage chart

I am tryign to generate a highchart linear guage chart. Based on the documentation I checked on I was able to create the following fiddle: http://jsfiddle.net/7ch69o1p/ But I am not able to complete ...
0
votes
0answers
22 views

Adding labels to logarithmic axis in C#/Winforms App

I need to know how to add more labels to a graph axis in a C#/Winforms App. I would like there to always be 5 labels evenly spaced along the Y-axis. The axis may start and end at any two points (not ...
4
votes
1answer
40 views

Non-linear Second Axis in Matplotlib

I would like to know if there is a way to add second non-linear x-axis in Matplotlib if one doesnt have any analytical formula. Or to simplify if there is a way to create a distinct label for each ...
0
votes
2answers
24 views

defining axis breaks based on other column without saving dataframe before

I am frequently creating plots like the one below with axis ticks/label indicating cumulative sums. This is all fine, but requires that I create the tibble before I can address the new breaks with ...
0
votes
1answer
35 views

Positioning colorbar and second y-axis (matplotlib)

I am trying to make a plot with a double y-axis and a colorbar next to it. However, the label of my second y-axis won't appear and I am having a bit of trouble positioning the colorbar right. My code ...
2
votes
1answer
53 views

Good K/M/G abbreviation of y scale labels in ggplot2

Question How can we easily have Kilo/Mega/Giga labels without "bits" or "Bytes" unit symbols? Example data.frame(x = LETTERS[1:5], n = c(0, 5000, 10000, 15000, 20000)) %>% ggplot(aes(x, n)) + ...
0
votes
2answers
44 views

How to set_xticklabels to corresponding “dates” column of a pandas DataFrame?

The issue I have a pandas dataframe with two columns of data and corresponding date times in another column. I want to make a line plot for the two sets of data and have the date times, which is a ...
1
vote
1answer
18 views

Is there a way to have TWO axis with DIFFERENT labels in MATPLOTLIB?

I'm trying to create a plot that has one x-axis on the bottom with text-based labels and I want another one on the top, that has different text-based labels. The closest thing I found so far are '...
1
vote
0answers
41 views

ggplot2: Adjust distance between text and axis

As a followup to the question of how to Increase distance between text and title on the y-axis, I am wondering whether it is also possible to adjust the distance between an axis and its title/label. ...
0
votes
1answer
35 views

log10 y-axis labels do not appear on R ggaluvial ggplot ; cannot nudge strata labels to vertical center

A compound question: I cannot get log10 y-axis labels to usefully display on the ggalluvial plot after many variations of scale_y_log10. I am having particular difficulty specifying and formatting ...
0
votes
1answer
41 views

Seaborn barplot does not show columns side by side

In the plot below, the threshold bars for the same year are not side by side: I would like to have a plot like this below: my_df = pd.DataFrame(data={'Year': \['2017','2018','2019','2019','2019','...
0
votes
1answer
35 views

y-axis label inside strip label with facet_grid

Imagine for a moment that there is some good reason to have a variable like mpg on different scales for each row in a faceted ggplot. How can I put the y-axis label inside the facet strip labels, so ...
0
votes
1answer
42 views

Sequence x-Axis labels when when 'breaks' has already been defined (R, ggplot)

I used scale() function on my data to avoid high correlation when doing a mixed model. Now I want the original values to appear in my plot. So I reversed the scaling with x * attr(x, 'scaled:scale') + ...
0
votes
0answers
21 views

pd.to_datetime created different x-axis on datframe plots

I am reading date and time from .csv file using pd.to_datetime. The date and time are in same column in this format "M/D/Y H:M". When I try to label x axis ticks using this column, the labelling ...
0
votes
0answers
45 views

How can I change the colour of the axis labels? [duplicate]

In LightningChartJS by default the colour for the axis labels is yellow. How can I change the colour of the text of the axis labels? I want to change the colour of highlighted part of the axis label. ...
1
vote
1answer
48 views

Can you change axis labels for each specific graph in facet_wrap?

So I need to change the specific x-axis labels in each graph, but I cannot how to do this. I have limited programming knowledge, and my solutions are not working. Here is the graph: Graph output ...
0
votes
1answer
25 views

Align label on yaxis in stacked plots

I have plotted a stacked image using jupyter. The plot comes out fine but the label on the y axis i'm not able to align to the center. The MWE is given below import numpy as np import pandas as pd ...
0
votes
3answers
56 views

Limiting Axis for ggplot

I am trying to plot my dataset marriage, which consists of State, Year, and Rate. However I am trying to focus on specific year intervals, so that the graph looks less congested. marriage<-read....
0
votes
1answer
33 views

Matlab - Bar chart with two plots and two axis

I am plotting two arrays in one plot. The bar plot must show two y-axis as well as the bars next to each other. The problem occurs when I want to implement both requirements. I can either plot the ...
0
votes
0answers
26 views

How to add labels to multiple vertical bar series?

Label series need x and y values to show labels. I am trying to add labels at plot that has multiple vertical bar series that has same xAxis values. The XYPlot shows labels at same vertical line if ...
0
votes
0answers
37 views

Formatting axis breaks, labels and legend when using secondary y axis ggplot2

I have added a secondary y axis to my plot (using ggplot2) and managed to get the scale on this axis OK. However, the scale on my primary y axis has now reverted back to the default rather than what I ...
0
votes
1answer
23 views

What prevents the x-axis label to appear in a Python tkinter canvas graph?

I'm plotting a graph in Python and want to label the x-and y-axis appropriately. However, only the y-axis decorator is shown, despite both of them beeing set. What could be preventing the x-axis ...
2
votes
2answers
58 views

How to add manually or automatically a missing y-label on y-axis which is not uniform towards other regular intervals

I have the following figure : I made it by the following Python script : # Colormap plot im = ax.imshow(np.log10(np.abs(matrixCl_der_transposed)), extent = [1e-8, 1e-1, 10, 5000], origin='lower',\ ...
0
votes
1answer
28 views

Move x-axis to pass through given y-axis value in chart.js

I have the following chart: let ctx = document.getElementById("chart").getContext("2d"); var datasets = [ { data: [1.1, 0.8, 1.2, 1.1, 0.7], type: "line", }, ]; var options = {}; var data ...
0
votes
1answer
18 views

Excel chart axis date format in Spanish, months without dot

I am trying to change the format of an Excel chart axis. The language must be Spanish, and I obtain the following: mar.-18 jun.-18 sep.-18 dic.-18 But I would like to have mar-18 ...
0
votes
0answers
31 views

How can I use ggplot to add an another axis that is not in one to one transformation with the others?

Using this code: ggplot(data=new.data+ geom_point(mapping=aes(x=num,y=score),shape=0)+ geom_smooth(mapping=aes(x=number,y=score),color="black",method="lm")+ xlim(2,9)+ ylim(10,25)+ xlab("Number of ...
0
votes
0answers
30 views

Add blank spaces in x-categorical axis

I'm plotting a monthly time series of abundance using a bar chart, and there are some months where I don't have data to show. It is possible to add blank spaces y the categorical x-axis? This is my ...
0
votes
1answer
27 views

Excel 2013: How to display corresponding text instead of numbers in axis labels?

I've a table of some task's progress, per person and I'd like to plot it on a chart. Y axis - names X axis - progress (NA, start, in progress, completed) and the preferable chart is bars, like that: ...
0
votes
1answer
46 views

Uneven axis in base r plot

I want to have a plot the axes of which be similar to attached images. I am particularly interested in the X axis of the attachment. Generally, an axis that shows for example 0 to 10. My data are ...
2
votes
1answer
29 views

R - change alpha value of individual lines in ggsurvplot

This is my first question in stack overflow so please bear with me. I am trying to change the alpha of the individual lines in my ggsurvplot but i'm not quite sure if this is possible. I allready ...
0
votes
2answers
30 views

The last label on xaxis disappears partly in Highcharts

As I am forcing Highcharts to show the last label on the xaxis, this last label is partially hidden, or partly disappears: Why is that? And what can I do? Setting the »marginRight« in the »chart« ...
0
votes
1answer
25 views

Resize Plot Area dynamically to see truncated text in Category Axis of a Clustered Bar Chart

I am copying and pasting Clustered Bar charts from a Workbook into a Powerpoint deck created dynamically. The Bar charts Category Axis may have long text (Axis labels), that sometimes gets truncated. ...
1
vote
1answer
27 views

Matplotlib; making different subplots with different axis labels [duplicate]

I am making a figure that consists of 2 subplots. The subplots show different quantities so I would like the axis labels to be different. However, I have no idea how to do this with the matplotlib ...
1
vote
1answer
56 views

How to remove x axis labels in R cdplot?

I would like to remove the default x-axis labels provided by cdplot, and then use the axis() function to introduce my custom labels. Example Forest = c(1,0,1,1,1,0,1,1,0,1) change = c(-1, 3, 1, 4, 1,...
0
votes
0answers
50 views

Bold expression in R plot axis labels

I am trying to draw a map for which axis labels are respectively longitudes in °E and °W and latitudes in °S and °N. No problem with that using expression(30~degree~N) for instance. The thing is ...
0
votes
0answers
28 views

How to display all y axis labels in Matplotlib chart in log scale

I am creating a 2 axis line chart with Matplotlib. There are multiple data series in the chart. I have the y axis set to log scale because the 2 series have different ranges. import pandas as pd ...
0
votes
1answer
24 views

Xtics label are not shown in the whole hight

How to solve this problem with xticks labels please? plt.tight_layout() doesn't help. Code: import matplotlib.pyplot as plt import numpy as np import re x = ('5L8 9O7 4H 7F') print(type(x)) xaxes ...
0
votes
0answers
18 views

Creating continous subplots with multiple x axes

I have the following dataframe: ------------------------------------------------------------ | Month | low_temp | high_temp | Wages | Extreme | ----------------------------------------------...
1
vote
1answer
42 views

How to introduce linebreak in plotly axislabels while using latex encodings?

I want to have a 2 line ticktext in my plotly diagram and have to rely on latex encoding for some other functionality. It seems that in this particular case neither the html encoding <br> nor ...
0
votes
1answer
59 views

how to change the order of categorical values on X-axis when using seaborn.FacetGrid?

I have following code: g = sns.FacetGrid(correct_data, hue="congruency", col="PP", row="cue", height=4, ylim=(.4, .9)) g.map(sns.pointplot, "pattern", "RT") This allows me to create a line plot per ...
1
vote
2answers
73 views

How to color ticktext in plotly?

I would like to display my ticktexts in my plotly xaxis with different colors based on the respective string (based on a dictionary). Is there a functionality in plotly to do this, maybe via HTML ...
1
vote
0answers
32 views

How change the numeric format of axis on R chord diagram to 1k, 2k, etc?

I'm trying to display the numeric values on the axis of an R chord diagram so that thousands are represent with a k. For example, 1000 would display as 1K, 2000 would display 2k, etc. Can anyone ...