Questions tagged [axis]

This tag should be used for questions about editing a plot axis, from any plotting library (e.g. matplotlib, ggplot, pandas, bokeh, plotly, etc.). Don't use this tag to refer to Apache Axis. Use [apache-axis] instead; see: https://meta.stackoverflow.com/q/276302/

3009 questions
37
votes
2 answers

ipython : get access to current figure()

I want to add more fine grained grid on a plotted graph. The problem is all of the examples require access to the axis object. I want to add specific grid to already plotted graph (from inside ipython). How do I gain access to the current figure and…
sten
  • 7,028
  • 9
  • 41
  • 63
37
votes
1 answer

Difference between Axis2 webservice and CXF web service

I would be grateful if any one help me to understand the difference between axis2 web service and CXF web service.
user1811206
  • 405
  • 1
  • 4
  • 7
35
votes
7 answers

Please initialize the log4j system properly. While running web service

Maybe it looks silly to ask this but I am confused. I referred to Configuring Log4j property but it doesn't seem to help. I have written a simple web service HelloWorld. And while running it I am getting the error something like this : log4j:WARN…
java_enthu
  • 2,279
  • 7
  • 44
  • 74
34
votes
2 answers

ggplot x-axis labels with all x-axis values

I'm plotting ggplot with geom_point. The x-axis will be individuals' ID, and y-axis is variable A. How can I ggplot all and individual ID values on the x-axis without overlapping labels? ID may not be continuous. df sample (actual rows are much…
Lumos
  • 1,303
  • 2
  • 17
  • 32
33
votes
2 answers

ggplot2, axis not showing after using theme(axis.line=element_line())

I am trying to draw this following graph using ggplot2 package, but somehow the axis won't show up. the ticks are there, just not the axis line. I have used the theme(axis.line=element_line()) function, but it wouldn't work. Here is my…
M.Zhao
  • 331
  • 1
  • 3
  • 4
33
votes
1 answer

Rotating axes label text in 3D

How do I rotate the z-label so the text reads (bottom => top), rather than (top => bottom)? import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.set_zlabel('label…
Hooked
  • 84,485
  • 43
  • 192
  • 261
32
votes
5 answers

d3 tick marks on integers only

I have a d3 bar chart whose values range from 0-3. I would like the y-axis to only show integer values, which I can do by var yAxis = d3.svg.axis().scale(y).orient("right").tickFormat(d3.format("d")); However, there are still tick marks at the…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
31
votes
3 answers

R barplot Y-axis scale too short

I'm trying to generate a barplot, but the y-axis scale is too short. Here's my code: barplot(as.matrix(dat), log="y", ylim=c(10000,100000000), beside=TRUE, ylab = "Number of reads", col = c("gray","black","white")) It leaves the room for…
jayemee
  • 363
  • 1
  • 3
  • 9
30
votes
7 answers

How to reverse axis values when using plotly?

Here is the program I used: library(plotly) mydata = read.csv("data_to_plot.txt") df = as.data.frame(mydata) p <- df %>% group_by(X) %>% plot_ly(x = ~Y, y = ~X, z = ~Z, type = "scatter3d", mode = "lines") p and below is an excerpt of…
Andrew
  • 926
  • 2
  • 17
  • 24
30
votes
4 answers

Restrict axis to integer tick locations

Quite often I want to make a bar chart of counts. If the counts are low I often get major and/or minor tick locations that are not integers. How can I prevent this? It makes no sense to have a tick at 1.5 when the data are counts. This is my first…
Epimetheus
  • 1,119
  • 1
  • 10
  • 19
30
votes
2 answers

Suppress ticks in plot in r

I want to remove labels and axis from X axis, however adding new ticks. plot(1:10, ylab = "") at1 <- seq(1, 10, 0.1) axis(side = 1, at = at1, labels = FALSE) I could not get rid of y labels.
SHRram
  • 4,127
  • 7
  • 35
  • 53
29
votes
2 answers

How can I change the font size of ticks of axes object in matplotlib

I have a figure I added subfigure to (inset). I have used: fig = plt.figure() ax = fig.add_subplot(111) subA = fig.add_axes([0.4,0.14,0.2,0.2]) I now want to change the xtick font size of the subfigure. I tried some naive approach such…
Yotam
  • 10,295
  • 30
  • 88
  • 128
28
votes
1 answer

How to specify line thickness in points a plot?

The base R plot functions commonly use the argument lwd for specifying the line thickness. These are relative line widths though, and different help files indicate that this is a multiplying factor. So a linewidth lwd = 1 gives a line width of 1 *…
Joris Meys
  • 106,551
  • 31
  • 221
  • 263
28
votes
3 answers

Which is the best maven's plugin to generate a Web Service Client?

I have to generate a WS Client and I can't decide which plugin to use. Until now my options are: jaxb2-maven-plugin, axistools-maven-plugin and jaxws-maven-plugin.
Neuquino
  • 11,580
  • 20
  • 62
  • 76
27
votes
2 answers

How to remove relative shift in matplotlib axis

When I try to do a plot against a range with big enough numbers I get an axis with relative shift for all the ticks. For example: plot([1000, 1001, 1002], [1, 2, 3]) I get these ticks on axis of abscissas: 0.0 0.5 1.0 1.5 2.0 …
Igor Mikushkin
  • 1,250
  • 16
  • 25