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/
3,091
questions
0
votes
1
answer
19
views
openpyxl Scatter plot w/ flitted x/y axis
starting from the example at:
https://openpyxl.readthedocs.io/en/stable/charts/scatter.html#scatter-charts
original scatter plot](https://i.sstatic.net/82ypMpIT.png)
I would like to generate this plot ...
1
vote
0
answers
28
views
Display custom dates on x axis matplotlib
Here is my plot:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import matplotlib.dates as mdates
dates = pd.date_range('2020-03-31', '2024-06-30', freq='...
1
vote
1
answer
78
views
How to put infinity and -infinity on a graph with plot
In the attached image I want to replace -1 by -Inf and 3 by Inf.
This is the code:
F <- function(x) {
f <- NULL
f[x < 0] <- 0
f[x >= 0 & x < 1] <- 0.4*x[x >= 0 & ...
0
votes
1
answer
21
views
How to convert a 3D point from Global coordinates to Local coordinates?
I have a point A = (Tx=-27.95, Ty=-94.68, Tz=-49.53, Q0=0.3222, Qx=-0.0062, Qy=-0.0092, Qz=0.9466).
Point A is a Global coordinate.
Now, Point A is my reference local coordinate axes
I have a second ...
0
votes
1
answer
34
views
Manually specifying x-axis limits with gglikert()
I am using the gglikert() function from the ggstats package to create horizontal stacked bar charts centered on the neutral response. I would like to know how to manually set the x-axis limits to 100% ...
0
votes
0
answers
37
views
Secondary X axis using plotly
I need to create a secondary x-axis (without creating a primary x-axis) with primary y-axis. Could anybody give suggestions? I tried to put side='top'. it does not work.
fig = go.Figure()
# Add ...
0
votes
1
answer
52
views
When using matplotlib, how do I set the on-screen lengths of the x and y axes to be equal without changing the limits of either axis?
I would like to make the axes of a matplotlib plot a square, and do so by stretching or compressing the scaling of the axes rather than by changing the axis limits. How can this be done?
(In other ...
0
votes
0
answers
27
views
How can I format tickers for hh:mm in Python matplotlib over a fixed period
I am fairl amateur to programming, but I'm trying to create a python widget that can display the selected photoperiod for a controlled environment growhouse, based on the current time. A GUI would ...
0
votes
1
answer
70
views
How to ensure consistent axis scaling when plots in a panel have different axis sizes?
The following code makes a panel with eight plots in a specific layout. It does everything I want except that axis scales are not consistent across all plots. I need the distance between zero and one ...
1
vote
0
answers
34
views
Force R to annotate axes with integers (not decimal numbers) [duplicate]
When I plot integers, the axes are nevertheless annotated with decimal numbers:
plot(1L:3L, 1L:3L)
Can I force R to only display integers?
I do not want to manually specify the numbers, e.g. by using ...
0
votes
0
answers
21
views
Difficulties in Axis 1 to Axis 2 Migration progress
I'm currently migrating an Axis 1 SOAP request to an Apache Axis2 SOAP request in a Spring project.
Previously, I used Axis 1 to convert a WSDL file into Java class files. However, in Axis 2, the ...
0
votes
0
answers
13
views
I have a web service that is using oracle apps cz cio import
I have an webservice which is deployed using axis and tomcat7 and jdk 1.7 but recently i have changed the versions to tomcat 9 and jdk 11 . after doing that i am getting exceptions as such for the ...
0
votes
1
answer
21
views
ggplot2::sec_axis does not compute log10 values correctly
I want to replicate Figure 3.15 from Fox, J., & Weisberg, S. (2018). An R Companion to Applied Regression (3rd ed.). SAGE Publications, Inc. with the {ggplot2} package.
This is the original Figure ...
0
votes
0
answers
32
views
R, plot second y-axis with ggplot2 [duplicate]
I have the following data.frame (df): download df here
x column are observations, meters column are altitude and hPa column are pressure levels.
If I plot x and meters I get the following:
How can I ...
0
votes
0
answers
19
views
square plots with identical x and y axes in python
I am plotting (x,y) pairs of data and I need to plot them in square plots with equal x and y axes. I need scale and even formatting of the axes to be identical. I have used
ax.set_aspect(np.diff(ax....