Questions tagged [axis-labels]

The labels on any axis of a plot

The labels on any axis of a plot. For example, the x and y axis labels of a 2D plot.

Use this tag for problems regarding the typography, visibility, layout, and/or placement of the axis labels in your plot.

1631 questions
0
votes
1 answer

X-Y Axis Formatting in R

I am trying to plot a graph and format the y-axis such that the numbers have proper spacing (5,000 apart) and are formatted to have commas (eg 350,000). Also I am trying to get the x-axis (the date) to show more refinement such that I have more…
jessica
  • 1,325
  • 2
  • 21
  • 35
0
votes
1 answer

matplotlib 3d projection, tick labels exceed margins

I have generated the plot below for a friend. How can I expand the plot, so the tick labels are not cut off? And how do I left align the y-axis tick labels and align them tightly to the axis? Here is the input file una.txt: #Average (pg/mL) …
tommy.carstensen
  • 8,962
  • 15
  • 65
  • 108
0
votes
1 answer

How to add a label to the axis in R?

How can I add a single label to the y-axis of the plot? By default, the plotted labels are e.g. 10, 20, 30, 40 and I'd like to add an extra one such as 18.5 so there will be labels 10, 18.5, 20, 30, 40 in total. I seek a function…
petrbel
  • 2,428
  • 5
  • 29
  • 49
0
votes
2 answers

How to input exponentiation in label using set_yticklabels in matplotlib

Hi I want to set tick labels as multiplication of some numbers by 6th power of 10. The problem is that I don't know how to make matplotlib to show it nicely. I do following: ax.set_yticks([1000000, 1200000, 1400000, 1600000, 1800000, 2000000,…
nosbor
  • 2,826
  • 3
  • 39
  • 63
0
votes
1 answer

subscript/superscript in Google Visualization API axes labels

How to include subscript/superscript in labels in Google Visualization API? I need some formula and subscript in google APIs.
0
votes
0 answers

TeeChart X axis labels shows same value when chart size became small

I have a question with the axis label of teechart in WPF. When the labels is small and the reduce the width of the chart the number of the chart bottom axis labels' number will reduce too. but it shows same labels. I have tried change the label…
user3430882
  • 35
  • 1
  • 8
0
votes
1 answer

highchart place x-axis labels in between ticks on a datetime axis

Using various posts/questions in SO as reference I created a scatter highchart jsfiddle xAxis: { opposite:true, type: 'datetime', gridLineWidth: 1, gridLineDashStyle: 'ShortDot', gridLineColor:'black', …
0
votes
1 answer

Matplotlib x-axis formatter showing decimal seconds--won't go away

I'm still relatively new to Python and I'm having a bit of trouble with the axis formatter for matplotlib. My axis uses datetime values and shows hours, minutes, seconds, and then decimal seconds. I want to get rid of the decimals and be able to…
D. Gron
  • 59
  • 11
0
votes
1 answer

Windows Forms Chart set fixed mixed labels

I would like to fix my labels on my x or y axis, so they are always static. I also want to mix the labelling with numbers and strings like in shown picture. Furthermore the y axis starting with -1, how can I always start with 0?
csnewb
  • 1,190
  • 2
  • 19
  • 37
0
votes
1 answer

Years-only display on xAxis with Highcharts

I have a graph which displays a line over many days, months and years. I'd like to have on the xAxis only every xth year displayed. In Safari, it displays it correctly; in Firefox (41.0), it displays 1970 all the way through. Here is a fiddle. The…
luftikus143
  • 1,285
  • 3
  • 27
  • 52
0
votes
2 answers

Place labels both inside and outside of axis

As I have very long string labels and some other shorter labels for one axis, I would like to place the long labels outside and the short labels inside the axis. Is that possible? A basic example would be this: fig, ax =…
user3017048
  • 2,711
  • 3
  • 22
  • 32
0
votes
1 answer

Matplotlib changing axis ticks

I have a few lines of making a scatter plot out of a collection of points (x0,y0), ... (xn,yn). The truth is that I am only interested in the x scale as it is the scale on which the graph is power law behaved but after plotting I would like to…
Learning is a mess
  • 7,479
  • 7
  • 35
  • 71
0
votes
0 answers

Label rotation for 3D plots

I am trying to rotate the axis labels in Matlab(R2015a). Here is my attempt: view([49 14]) set(get(gca,'XLabel'),'Rotation',-13); set(get(gca,'YLabel'),'Rotation',13); %set(get(gca,'YLabel'),'Rotation',25); xlabel('Mean Delivery Rate…
tam
  • 141
  • 7
0
votes
1 answer

Python: change labels of a plot using matplotlib

I want to change the labels of a plot fig=figure(figsize=(7.5,7.5)) labels = [0,0.00001,0.0001,0.001,0.01,0.1,1] plt.xscale('log') plt.xlim(10^-6,1.1) plt.xticks(y, labels) However I would like to have the labels in the format 10^-5, 10^-4,…
emax
  • 6,965
  • 19
  • 74
  • 141
0
votes
1 answer

How to customize individual numbers on an axis in matplotlib?

I'm trying to overlay these two plots, and so far I think I might have it but the first number on the top y-axis and last number on the bottom y-axis are overlapping each other. Is there a way to individually edit each number on the y-axis so I…
Greg Castaldi
  • 355
  • 1
  • 4
  • 11