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
26
votes
5 answers

Set highcharts y-axis min value to 0, unless there is negative data

I'm having an issue with highcharts where I have a number of different charts being generated by JSON calls. For the majority of these charts I need the minimum y-axis value to be set at 0, however there are a couple of occasions where negative…
Pryor74
  • 261
  • 1
  • 3
  • 3
25
votes
2 answers

Matplotlib: get and set axes position

In matlab, it's straightforward to get and set the position of an existing axes on the figure: pos = get(gca(), 'position') set(gca(), 'position', pos) How do I do this in matplotlib? I need this for two related reasons: These are the specific…
Åsmund
  • 1,332
  • 1
  • 15
  • 26
25
votes
2 answers

How to use Axis WSDL2Java generated files?

I generated Java files from WSDL with WSDL2Java converter, but I don't know how can I use service with these files, because there are no examples. I'm implementing client side.
newbie
  • 24,286
  • 80
  • 201
  • 301
25
votes
4 answers

What is the difference between an endpoint, a service, and a port when working with webservices?

I've used Apache CXF to expose about ten java classes as web services. I've generated clients using CXF, Axis, and .NET. In Axis and CXF a "Service" or "Locator" is generated. From this service you can get a "Port". The "Port" is used to make…
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
22
votes
3 answers

d3.js - evenly spaced bars on a time scale

I'm building a bar plot in d3.js in which each bar represents total TB cases during a month. The data essentially consists of a date (initially strings in %Y-%m format, but parsed using d3.time.format.parse) and an integer. I'd like the axis labels…
Matt Parker
  • 26,709
  • 7
  • 54
  • 72
21
votes
3 answers

Eclipse Axis error when creating web service

Every time I try to create a new Web Service in Eclipse, I get this error: IWAB0489E Error when deploying Web service to Axis runtime axis-admin failed with {http://xml.apache.org/axis/}HTTP (404)Not Found Any idea how to solve this…
Bv202
  • 3,924
  • 13
  • 46
  • 80
21
votes
1 answer

Change secondary line axis color

In ggplot2, how can I modify axis.line.y only on the sec.axis (if possible)? p <- ggplot(mtcars, aes(cyl, mpg)) + geom_point() # Create a simple secondary axis p + scale_y_continuous(sec.axis = sec_axis(~.+10)) + …
AJMA
  • 1,134
  • 2
  • 13
  • 28
21
votes
1 answer

Log x-axis for histogram

I'm trying to plot a histogram with a logarithmic x axis. The code I'm currently using is as follows plt.hist(data, bins=10 ** np.linspace(0, 1, 2, 3), normed=1) plt.xscale("log") However, the x axis doesn't actually plot correctly! It just goes…
student1818
  • 221
  • 1
  • 2
  • 3
21
votes
5 answers

What is the meaning of "axis" attribute in a Pandas DataFrame?

Taking the following example: >>> df1 = pd.DataFrame({"x":[1, 2, 3, 4, 5], "y":[3, 4, 5, 6, 7]}, index=['a', 'b', 'c', 'd', 'e']) >>> df2 = pd.DataFrame({"y":[1, 3, 5, 7, 9], …
user4881093
21
votes
2 answers

deploy war file in tomcat server

I have copied the sample.war file in webapps directory of tomcat. I can acess localhost:8080. deploying of wars is automatic by default -i have checked my webapps folder for an extracted folder "sample" but it is not extracted.why the war file is…
user1796222
  • 275
  • 2
  • 4
  • 10
20
votes
3 answers

Interchange location of y and z axis in a 3D plot

By default, plotting a set of points (or whatever) in 3D with matplotlib, locates the z axis vertically, as seen here (code below): I need to interchange the z and y axis, so that that y axis is shown vertically. I've looked around but found no way…
Gabriel
  • 40,504
  • 73
  • 230
  • 404
19
votes
2 answers

Set yaxis of all subplots to the same range - Matplotlib

I'm wondering how do I force my subplots to share the y-axis range. This is my code: f, axes = plt.subplots(7, 1, sharex='col', sharey='row', figsize=(15, 30)) distance = [] for i in range(simulations): delta = numpy.zeros((simulations+samples,…
pceccon
  • 9,379
  • 26
  • 82
  • 158
19
votes
2 answers

how to adjust # of ticks on Bokeh axis (labels are overlapping on small figures)

I have a multi-figure Bokeh plot of vertically stacked & aligned figures. Because I want to align the plots vertically, the y-axis labels are rotated to be vertical rather than horizontal. In certain scenarios, Bokeh produces too many ticks, such…
Jonathan Shore
  • 880
  • 2
  • 8
  • 21
19
votes
2 answers

Removing axes margins in 3D plot

I spent last few days trying to find a way to remove tiny margins from axes in a 3D plot. I tried ax.margins(0) and ax.autoscale_view('tight') and other approaches, but these small margins are still there. In particular, I don't like that the bar…
dolphin
  • 1,192
  • 10
  • 27
18
votes
3 answers

Any workaround for ignoring unexpected elements in Apache Axis 1.4?

The problem was asked before "Apache AXIS Ignore/Skip additional element while parsing" in 2012 for Apache Axis 2. Is there no workaround yet for Axis 1.4? Problem Definition For instance; 1- We have a soap response…
veysiertekin
  • 1,731
  • 2
  • 15
  • 40