4,071 questions
2
votes
1
answer
85
views
How to make my plot legend be inside the axis?
I would like the legend to my scatter/line plot to be inside the axis of the plot it is informing, but I can only seem to get a legend if is has its own axis, which becomes a problem when I want three ...
1
vote
2
answers
114
views
Display labels on both sides of Gnuplot graph
Gnuplot 5 on Raspberry Pi.
How can I duplicate the y-axis text (-1, -0.8 etc) on both the left and the right sides of the graph?
This is the code used to create it:
set key fixed left top vertical ...
0
votes
1
answer
82
views
Positions of vectors wrong in matplotlib.pyplot.quiver
I am trying to demonstrate that $v_1 + t(v_2 - v_1)$ is a parameterized line using vectors $p_k=v_1 + \frac{k}{8}(v_2 - v_1)$ for $k=0\ldots 8$ with tails at the origin, and then the vector $u=v_2-v_1$...
0
votes
1
answer
61
views
How do I change the axis in excel from mmm-yy to qq-yy? [duplicate]
I want to change the format of an axis from mmm-yy to qq-yy. Example, I want "Dec-22" to be "Q4-22". The dates are NOT in the data, so I can't change the date format in the data ...
0
votes
1
answer
64
views
How to make "axis_logticks" work on secondary axes with ggplot2 in R?
I'd like to show log tick marks on both primary and secondary axes in a log-log plot using ggplot2.
R version: 4.4.2
ggplot2 version: 3.5.2
Here's a simple log-log plot:
library(ggplot2)
ggplot() +
...
0
votes
0
answers
1k
views
VMD Main >>> Display -> Axes -> Origin
In VMD Main window, Display -> Axes -> Origin, in this situation xyz-Axes do not show the simulation box real origin.
It shows the material point, that is to say, center of mass of
only the ...
0
votes
2
answers
79
views
Auto fit for Y axis doesn't work as expected
I noticed that under some circumstances the auto fit of the Y axis doesn't work (even when invoking fit method manually).
It seems to be related to traces not having the same amount of points (length)....
3
votes
1
answer
76
views
Is there a way in R to specify the space between to make my X Axes fit my map?
I'm trying to display a planisphere using a map from rnaturalearth library, and I want to add some X and Y axes on each side of my planispher, I managed to set up correctly the Y axes, but I can't ...
3
votes
2
answers
130
views
Log-shift transformation does not squish the data
When I plot a density using geom_spatraster, there's a particularly prominent peak that's 'bright' in the visualization. This spike skews the color scale, compressing the representation of other data ...
2
votes
2
answers
192
views
How can I make a discontinuous y axis in R with ggplot2?
Building from this question:
How can I make a discontinuous axis in R with ggplot2?
How can we adjust this code to create the same effect but in the y axis? I am having no success with keeping the ...
6
votes
2
answers
299
views
Fixed aspect ratio prevents patchwork to collect axis titles
When merging axis labels with the patchwork package, problems occurred (see this question). From the answer of the question, I applied the idea of the example code to my concrete example, in which I ...
0
votes
0
answers
34
views
Matplotlip axis labeling with vernal equinox
I need to label the vernal equinox on a Matplotlib 3D plot.
ax.set_xlabel("x (AE)")
ax.set_ylabel("y (AE)\n♈")
ax.set_zlabel("z (AE)")
As you can see in my two ...
0
votes
0
answers
86
views
"Save As" gives wrong values on the Y axis of a graph
I have a question about Excel VBA.
I struggle to find out what is causing a certain behaviour.
When running the code below, which is started with a Button on sheet 1, the graphs on sheet 2 are changed....
0
votes
0
answers
60
views
Matplotlib: use a different NavigationToolBar for a specific axis
I have 2 axes displayed together (ax1 and ax2) and controlled but the default toolbar. When I click on "Visualisation", ax1 and ax2 are hidden, to create a new axis ax3 in bigger. It works, ...
2
votes
2
answers
98
views
How to turn off gridlines from 3d axes?
How do I turn off the major x axis grid from this axes?
This code below works on 2d plots to hide the major x gridlines. On 3d plots it doesn't seem to do anything.
I prefer to use general axes ...
2
votes
1
answer
118
views
How to force graph to stop displaying after a certain x-axis value
In Stata, how can I force the graph to stop displaying after a certain point on the x-axis?
For instance, say that I have:
sysuse auto2, clear
gen mid = (price + weight)/2
gen n = _n
twoway ///
...
2
votes
2
answers
102
views
Data apparently plotted wrong way on matplotlib
I am plotting a graph with date on the x axis and data on the y axis. However the graph is completly wrong and I don't understand why...
df['Date_TrailClean'] = pd.to_datetime(df['Date_TrailClean'])
# ...
0
votes
1
answer
56
views
ggplot secondary axis title position
I have the plot below, with secondary axes showing row and column totals. I want to label these as "Total". I know that I can get an axis title by altering name = NULL, but that will only ...
0
votes
0
answers
83
views
Open3D visualizing local axis of the point cloud bounding box
I'm using the following code (inside a main code written in open3d) for visualizing the local axis of the bounding box of selected point clouds. It is working, but in a new window. I want to see the ...
0
votes
1
answer
52
views
chart js format only 2 axis lines and not the all grid lines
Is it possible in chart js
display grid lines - while formatting different only the 2 main axis lines.
x-axis (y=0) and y-axis(x=0).
in y axis - set different color for y ticks values: red for ...
0
votes
0
answers
36
views
Axes starting at zero within theme in ggplot [duplicate]
I would like to know if it is possible to draw bold the axes of a ggplot at zero modifing the axis lines in theme, instead of using geom_vline, and at the same time taken care of that the axes tick ...
1
vote
1
answer
82
views
plot modification to align both x-axes and start from where it exists in list
import matplotlib.pyplot as plt
size = 18
value = [20, 25, 30, 35]
x_values1 = list(range(0, 100, 5))
x_values2 = [0.0, 20.0, 40.0, 60.0, 80.0, 90.0, 95.0]
x_values3 = [80,76,72,68,64,60,56,52,48,44,...
0
votes
1
answer
210
views
How to change the y-axis interval with R Base (barplot) [duplicate]
I want to create a barplot with R base. My problem now is, that I would like to change the y-axis interval from 2 to 1.
(at the moment I have the steps 0,2,4,6,8,10,12; and I want 0,1,2,3,4,5,6,7,8,9,...
0
votes
0
answers
51
views
How to resize twin axis matplotlib
I'm trying to overlay two figures in a plot, but when I use the twin axes as default, the resulting plot doesn't make much sense. I need to move the second figure (the one to be overlaid) to the top ...
0
votes
1
answer
23
views
How to use single axis title with layer and facet?
I would like to use one single title that goes across facets for the x-axis in this plot. How to do that in python using altair?
Apparently, Altair does not provide that functionality.
import altair ...
0
votes
0
answers
42
views
Why does Axis2 throw "An invalid request URI was provided" when connecting to an .asmx SOAP endpoint?
I am using Axis2 to consume a SOAP web service hosted at an endpoint that looks like this:
https://example.com/car.asmx?wsdl
However, when I make a request, I get the following error:
An invalid ...
0
votes
0
answers
14
views
Ternary plot with values large axis values
is it possible to create a ternary plot with values larger than 100? I'm trying to plot the relationship between annual minimum temperature, maximum temperature, rainfall and tree height (as heat ...
0
votes
1
answer
47
views
changing the y axis in matplotlib
How can you change the y-axis in matplotlib such that you have specified ticks ([0, -1, -8, -44, -244]) but they are evenly spread over the y-axis (the gap between 0 and -1 is just as big as the gap ...
0
votes
2
answers
38
views
Rescale axes concerning visible artists only
I have a request regarding the use of autoscale_view(). I was expecting it to scale the plot considering only the visible artists, but it does not have such an effect.
I have a small test script as ...
0
votes
1
answer
29
views
Possible collision not working? no Movement
Trying to create movement through vertical axis, only when objects are overlapping. I basically want my character to be fixed to the wall before they're able to climb up.
Here's my player code, no ...
0
votes
1
answer
69
views
Adjust the grey background of ggplot in ggmap
I have the following script to construct a ggmap, along with a polygon and some points. The example is not reproducible but this is not an issue because the problem that I face is related to the ...
0
votes
0
answers
86
views
How to create dynamic altair x-axis and not fixed on current values?
My data looks like this:
Name
Date
1%
2%
10%
...
100%
Anne
1/1/24
3
5
1
...
92
Anne
1/2/24
4
8
2
...
78
Anne
1/3/24
7
9
6
...
47
My x axis are the percentages: 1%, 2%, 5%, 10%, 15%, 25%, 50%, and 100%
...
1
vote
0
answers
97
views
Rotating matplotlib subplot with additional axes
I am currently struggling to create a 3-panel figure where the centre plot contains a contour plot and the top left and right panels show some lines. The thing is that all the plots are rotated 45 ...
0
votes
1
answer
140
views
Highcharts Gantt fixed width of the left axis as a table column
I use Highcharts (Gantt module) to generate a Gantt Resources Management chart with a left axis as a table.
It works very well but, for a specific alignement reason with other charts, I need to fix ...
-1
votes
1
answer
72
views
Change the horizantal axis crosses in a python bar chart
I apologize if this is an easy and simple question that has already been answered. I have some data I am trying to chart as a clustered bar graph using a pandas dataframe in python and so far it has ...
0
votes
1
answer
56
views
Overlaying a line plot over a stacked bar plot with dual y axis [duplicate]
I tried many times to plot line data of temperature over a stacked bar chart, but it didn’t work. My data consists of four columns as shown below: site, Frequency, Movie _Status, and temperature:
Site
...
1
vote
2
answers
58
views
plot the x axis as MM:SS instead of integer in a histogram
I have ambulance response time data as seconds. For example (32, 158, 36, 459, 830, 396). I am able to make a Matplotlib histogram binning the data into 60 second increments. On the x axis label the ...
1
vote
1
answer
39
views
ggplot2 in R: mean summary point for subgroups in grids
I have the following chart that combines five variables:
library(ggplot2)
data(mtcars)
ggplot(mtcars, aes(x=mpg , y=disp , color=cyl)) +
geom_point() + facet_grid(vs~am)
which gives me a graph ...
2
votes
1
answer
167
views
Make a common x-axis for multiple plots in a cowplot
I have multiple plots made with ggplot2 that I arrange together using cowplot. They all have the same length, and an x-axis with the same breaks at the same places, but with different labels.
This is ...
2
votes
2
answers
107
views
Sequence color blocks inside ggplot2 plot area at specific coordinates
I have a simple line plot where I show a DNA sequence on the x-axis, done in the following way with ggplot2:
myseq <- "AGAATATTATACATTCATCT"
set.seed(123)
mydata <- data.frame(time=1:...
0
votes
1
answer
90
views
Preserve x-axis breaks and element_markdown specs on each facet in ggplot2 with facet_wrap and free_x
Say I have the final_df data frame in the MWE below, and I make the plot below it, using a custom scale_x_continuous and element_markdown from ggtext.
myseq <- "AGAATATTATACATTCATCT"
set....
0
votes
1
answer
53
views
Livecharts crashing whenever ScalesYAt != 0
I'm using LiveChartsCore 2.0.0-rc2 together with the .SkiaSharpView and .SkiaSharpView.WinForms (also the same 2.0.0-rc2 version)
I'm trying to create a multiple axis Vertical Axis graph such as
For ...
1
vote
0
answers
28
views
How can I fix overlapping axes and graphs in d3-contour?
I'm drawing a graph using contour from the d3 library, and I'm having trouble with the graph and the axes overlapping. I don't know what the problem is. The code below is the code that's causing the ...
0
votes
2
answers
97
views
Is Quaternion (-Q0, Qx, Qy, Qz) the same as (Q0,-Qx, -Qy, -Qz)?
Could you tell me if Quaternion (-Q0, Qx, Qy, Qz) is exactly the same as (Q0,-Qx, -Qy, -Qz)?
I am testing a SW tool against a formula and I have noticed that sometimes the signs are different.
The ...
0
votes
1
answer
47
views
Excluding a label on the y-axis in Matplotlib: How?
I would not like to have the first label on the y-axis on my figure which looks like this now, since I don't find it very nice to have it like this.
In my solution, I tried excluding the ...
0
votes
0
answers
56
views
Creating two Y-axes with the same X-axis [duplicate]
I am trying to create a plot for my stable isotope data from sequential dentine sampling which provides deltaN15 and deltaC13 data as well as age assignments. I would like to have the x-axis be the ...
-1
votes
1
answer
45
views
Make axis lines start from specific values in ggplot
I have the following scatterplot in ggplot:
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width)) +
geom_point() +
theme_classic() +
scale_y_continuous(limits = c(2, 5)) +
...
-1
votes
1
answer
74
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
37
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
99
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 & ...