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

How to display the label as two lines for DateTime on XtraChart?

I have a DevExpress XtraChart LineChart control, and its argument is DateTime. I use the AxisX.DateTimeOptions.Format = DateTimeFormat.General, it will display year, month, day, hour, minute, but the labels will overlap each other. I know in…
spspli
  • 3,128
  • 11
  • 48
  • 75
0
votes
1 answer

how do I programmatically invoke labels in vis.js?

From the docs, I am unable to determine how in vis.js (Graph3d, in particular) I can cause labels to appear on my graphs dynamically. I would like to modify the appearance of data for different sets of x, y and z; yet, it seems that vis.js favors…
gallygator
  • 377
  • 1
  • 4
  • 16
0
votes
1 answer

R plot tickmarks

I have a plot in R with both x and y-axes tick labels looking like this: -1.5 -1.0 -0.5 0.0 0.5 1.0 How can I remove the -1.5, -0.5, 0.5 tickmarks/labels? How can I remove the decimal from the remaining labels? (i.e. -1.0 to become -1).
VasoGene
  • 141
  • 3
  • 12
0
votes
1 answer

ggplot axis ticks fall at center of bin value rather than at the bin limits

I have data (x,y) for dates (x) and y (values). I split y into bins by value and am plotting one point for each bin on each day, with the size of the point proportional to the number of values that fall into each bin for that day. Each day now has 5…
epi_bio
  • 95
  • 1
  • 9
0
votes
2 answers

change discrete x zoo scale in ggplot2

I have this data.frame: data<-structure(list(MESANIO = structure(c(2008.25, 2008.41666666667, 2008.58333333333, 2008.66666666667, 2008.75, 2008.83333333333, 2008.91666666667, 2009, 2009.08333333333, 2009.16666666667, 2009.25, 2009.33333333333,…
eflores89
  • 339
  • 2
  • 10
  • 27
0
votes
2 answers

Can I add y-axis labels on a horizontal barchart using pandas?

I'm using the pandas wrapper around matplotlib to create a horizontal barchart and would like to add labels to the y-axis. Sadly it doesn't seem to be as simple as just adding a labels=df['Labels'] parameter as we can with pie charts. import…
Jamie Bull
  • 12,889
  • 15
  • 77
  • 116
0
votes
1 answer

logi.hist.plot moving axis labels r

Hi I am trying to created a logi.hist.plot using the package popbio but the second y-axis label seems to be encroaching on the axis ticks. Here is the code I am using: molters …
0
votes
1 answer

How can I have the full range in the x- and y-axis labels in a plot?

I have two variables, x and y x = runif(8, 0, runif(1, 1, 5)) y = x^2 that I want to plot. Note that the range of x (and hence y=x^2) is not always the same. So, the command plot(x, y, pch=19, col='red') produces However, I don't want the…
René Nyffenegger
  • 39,402
  • 33
  • 158
  • 293
0
votes
0 answers

matlab: inputdlg dialog box comes with tick labels

I have a user input request box basically written as matlab suggests in http://www.mathworks.com/help/matlab/ref/inputdlg.html . prompt = {'Enter spot number'}; dlg_title = 'Input'; num_lines = 1; def = {'9'}; answer =…
0
votes
0 answers

How to rotate x axis labels 45 degrees

I have some data as of below: mydata <- rbind(c(5,4,3,7,6), c(1,4,5,2,2)) colnames(mydata) <- c("Ali","Bala","Chun Li","Danny","Esther") And I would like to do a grouped bar plot of my data: x <- barplot(mydata, beside=T, las=2, …
remykarem
  • 2,251
  • 22
  • 28
0
votes
0 answers

Add legend category to ggplot2 line plot with two y-axes

I'm trying to make a graph using ggplot2 with 2 different y-axes (appropriate and not misleading, I promise). I've got a legend for the first graph, but I can't seem to be able to add one for the second. Nor can I label this axis. My code is quite…
TCS
  • 1
0
votes
0 answers

How to make dual labeled axes from one dataset with d3

I'm trying to make a scatterpoint with dual labeled x-axes in d3 angular. I have my label-data on the format: xlabels = [{PtName: "Name1", SocName: "Same soc!", Other: "Other1"}, {PtName: "Name2", SocName: "Same soc!", Other: "Other2"}, …
Sara H
  • 71
  • 1
  • 7
0
votes
1 answer

(D3.js) How to invert the X-axis? From 0...10 to 10...0

I need to invert the X-axis to have it begin from the biggest value and to degrade to lowest. For example beginning from 2015 and ending 1985. Is it possible to just sort the original data json/array in php? Or will it be sorted back to lowest to…
user1271930
  • 331
  • 1
  • 7
  • 21
0
votes
1 answer

draw the y-label on the top of y axis

I want draw the ylab on the top of the y axis, which code can I use? Here is the example par(mar=c(4,6,4,4)) plot(rnorm(100), ylab="") mtext(side=2, text="Label", las=1, line=2) I want draw the ylabel at the top of y axis which red arrow…
swchen
  • 643
  • 2
  • 8
  • 24
0
votes
1 answer

Making X-axis labels in R more granular

I'm producing a graph and R and would like the x axis to be more granular. Tenure Type Visits Members Percent 1 0 Basic 122446 283975 0.4311858 2 0 Premium 21190 44392 0.4773383 3 1 Basic 92233 …
ben890
  • 1,097
  • 5
  • 25
  • 56