4,063 questions
0
votes
1
answer
76
views
WSO2 MI – Error Could not write JSON stream when handling base64 payload
I’m working with WSO2 Micro Integrator and exposing a PATCH API that receives a base64 document in JSON payload, then forwards it to a backend service.
<resource methods="PATCH" uri-...
-5
votes
1
answer
150
views
How to change a chart so the category axis position is "On tick marks"?
I've been using Apache POI to create an Excel workbook with multiple worksheets and complex charts. Writing data to cells and formatting the cells has been relatively straightforward, but formatting ...
2
votes
1
answer
133
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
133
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
96
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
84
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
72
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
85
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
79
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
134
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
233
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
312
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
37
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
89
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....
2
votes
2
answers
139
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
153
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
111
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
63
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
1
answer
56
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
85
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
282
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
1
answer
26
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
1
answer
65
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
42
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
30
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
76
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
88
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
106
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
154
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
75
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
62
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
61
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
41
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
185
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
115
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
102
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
64
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
32
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
108
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
48
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 ...
-1
votes
1
answer
60
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
88
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
38
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
120
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
346
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
248
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
1
answer
133
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
1
answer
118
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 ...