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
14
votes
1 answer

What type of exception is (0)null?

I am using Apache Axis, and I am getting exception of type (0)null. Here is partial stack trace: .... .... org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:281) at…
hrishikeshp19
  • 8,838
  • 26
  • 78
  • 141
14
votes
2 answers

How to make X axis in matplotlib/pylab to NOT sort automatically the values?

Whenever I plot, the X axis sorts automatically (for example, if i enter values 3, 2, 4, it will automatically sort the X axis from smaller to larger. How can I do it so the axis remains with the order I input the values i.e 3, 2, 4 import pylab…
Honesta
  • 1,394
  • 1
  • 11
  • 20
13
votes
2 answers

Relative positioning of geom_text in ggplot2?

I am using geom_text to annotate plots in gglot2 and I want use relative positioning rather than absolute. That is, I want a position of (0.5, 0.5) to be dead center regardless of the x and y axis limits. Is that possible? Alternatively I could of…
c00kiemonster
  • 22,241
  • 34
  • 95
  • 133
13
votes
2 answers

Re-order axis in Plotly graph

I have data of ~3 years organised by month and year. I want to plot this data as a bar chart by month and year, with the month as the x-axis and the year as a trace. The problem is that the data starts in September 2018, so the first month to be…
dc2
  • 157
  • 1
  • 1
  • 6
13
votes
2 answers

X-axis tick labels are too dense when drawing plots

I am drawing matplotlib plots and my x axis consists of YYYYMM formatted strings of year and month like 201901 for January of 2019. My problem is that some of the data spans on a long period of time and this makes the x axis tick labels so dense…
Canol Gökel
  • 1,168
  • 2
  • 13
  • 29
13
votes
4 answers

Gnuplot how to lower the number of tics in x axis

The figure has too many xtics and ytics. Can I have half of them? I know I can manually set tics in a way similar to this: set xtics (1,2,4,8,16,32,64,128,256,512,1024) But I feel it is not a general solution. You can not manually set tics for all…
Changwang Zhang
  • 2,467
  • 7
  • 38
  • 64
13
votes
2 answers

Aligning y-ticks to the left

I have tick labels of variable length, and I want to align them to the left (i.e. to have a space between the shorter ones and the y axis). Is there any reasonable way to do this? Using horizontal alignment 'left' aligns them to the left, but they…
Korem
  • 11,383
  • 7
  • 55
  • 72
13
votes
2 answers

Turn off z-axis only in 3-d plot

I have some mpl_toolkits.mplot3d surface plots that I am viewing from different angles. When viewed from directly above (elev = 90, azim = 90) the text of the z-axis is all piled up on top of itself. ax.set_axis_off() hides all of the axes, but I…
user1666203
  • 131
  • 1
  • 3
12
votes
1 answer

Axis label hidden by axis in plot?

I am trying to make a polar 'sypder' plot but I am having some problems with the axis labels. The xaxis tick lables always seem to end up on a layer below the y axis grid (the letters are covered by the grid line, as shown in the figure below), I…
esperluette
  • 1,792
  • 2
  • 14
  • 21
12
votes
2 answers

Secondary y-axis in matlab 3D plot (surf, mesh, surfc)

I am trying to add a secondary y-axis with different units to a 3D plot. [m2_array, ~ , ~] = F_readBin('amb.bin'); amb = m2_array(:,:,lat); surfc(light,'LineWidth',0.001); ylim([1 24]); xlim([1 size(light,2)]); title(['@…
Larusson
  • 267
  • 3
  • 21
12
votes
1 answer

How to use the webservice-client classes generated with Eclipse?

I used eclipse Helios to create a Web Service Client for consuming an axis 1.4 web service. It generated 2 packages: 1 - datamodel. 2 - client. Inside client package there are 5 classes: 1- ServiceName 2- ServiceNameProxy 3- ServiceNameService 4-…
Abu Muhammad
  • 1,185
  • 5
  • 20
  • 29
12
votes
3 answers

Python pyqtgraph how to set x and y axis limits on graph, no autorange

I would like to know how I can set the x and y axis limits that are displayed for a pyqtgraph.GraphicsWindow.addPlot object. I need to display a lot of data inside a loop (hence using pyqtgraph) but I would rather preallocate my axes as opposed to…
Michael
  • 121
  • 1
  • 1
  • 4
12
votes
2 answers

Serious, intermittent errors with CF Web Service

We've got an incredibly frustrating situation with a CF Web Services-based API that we wrote and maintain. We had an API in place for years that was stable and working happily with Ruby, PHP, and ColdFusion clients. Then this year a .NET client came…
sbleon
  • 1,685
  • 2
  • 13
  • 20
12
votes
4 answers

In-process SOAP service server for Java

OK, I am developing a program which will be deployed to lots of machines (Windows, Linux, AIX, z/Linux, openVMS, etc.). I want that application to contain a SOAP web service, but I don't want to bundle tomcat or run a separate service for the…
tster
  • 17,883
  • 5
  • 53
  • 72
12
votes
5 answers

Where I can find Axis WSDL2Java file?

I downloaded Axis 1.4 ( http://www.nic.funet.fi/pub/mirrors/apache.org/ws/axis/1_4/ ) and I wanted to use WSDL2Java, but I didn't find such a file from package, but there are refrences to this file (…
newbie
  • 24,286
  • 80
  • 201
  • 301