Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
47 views

I am trying to plot a global dataset of seamounts (full shapefile data can be found here). seamounts <- st_read("YessonEtAl2019-SeamountBases-V2.shp") I want to plot it centred on the ...
mikejwilliamson's user avatar
4 votes
1 answer
94 views

In Matplolib, it is possible to change the direction of the tick of 2D plots with tick_params parameters import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np fig ...
Thomas Bernat's user avatar
-2 votes
0 answers
72 views

I have a dataTable that is a list of lists. Every one of those lists is a list of different data. The first list containes the year, the second is data about 'poverty' for every one of those years, ...
user31641956's user avatar
Tooling
0 votes
1 replies
35 views

I have a C++ data processing program. I want to view a live plot of a stream of data that is being produced in the program, for debugging purposes. I'm not looking for a production-ready plotting ...
hburd's user avatar
  • 320
1 vote
2 answers
146 views

I am trying to create a series of plots using ggplot2 in R, and I want to customize the labels in the facet nested plots, particularly to include subscripts for the ICC labels. Below is my attempt, ...
Linus's user avatar
  • 355
2 votes
2 answers
105 views

I am using the stR package to decompose an msts time series. When I call: library(stR) library(forecast) msts_spain <- msts( spain_daily$Daily_Load, seasonal.periods = c(7, 365.25), start = ...
Saïd Maanan's user avatar
0 votes
1 answer
97 views

I am trying to create a forest plot to compare estimates of different models. Tho goal is to plot all the estimates of the same predictor for the different models so they are comparable. For this I ...
Linus's user avatar
  • 355
0 votes
0 answers
31 views

I need to animate the movement of a cylinder in space. I have the x, y, and z coordinates as a function of time in a CSV file. Since it's very large, I can't create the animation manually. Is there a ...
Azerty Gray's user avatar
0 votes
0 answers
84 views

I have a mixed model that includes three different variables: Treatment, Stimulation, and DRG, as well as a random effect with DRG nested under a group ((1|Group/DRG)). I am looking to assess how each ...
Emily Tran's user avatar
1 vote
1 answer
72 views

I'm attempting to create a coefficient plot for multiple linear models using ggplot2 in R, but I'm facing an issue with overlapping points and error bars when displaying the estimates. I've written a ...
Linus's user avatar
  • 355
0 votes
1 answer
89 views

I'm getting an odd problem where I've attempted to plot a scatter graph and fit a quadratic regression line to it. I used stat_smooth() to make the line, and stat_regline_equation() to print the ...
CJG's user avatar
  • 3
3 votes
0 answers
104 views

I want to plot all the diagonals of a matrix. In the matrix row 1 contains information of time 1, row 2 of time 2 etc etc. Each diagonal presents the evolution of the number of fishes in a cohort that ...
Claris's user avatar
  • 31
0 votes
0 answers
81 views

I want to plot several time series (xts) in R in a loop. However, that does not work, I only get "empty" devices. So I wrote a little test: library('xts') testdata <- c(1:100) testdata....
smoff's user avatar
  • 660
8 votes
2 answers
310 views

How do I make the line in the graph above a double line like shown in below? Some example code: df <- data.frame(dose=c("D0.5", "D1", "D2"), len=c(4.2,...
J. Doe's user avatar
  • 1,882
1 vote
1 answer
105 views

I'm trying to create a nested facet plot in R using ggplot2 and ggh4x with the facet_nested function. I'm plotting a boxplot of a simulated dataset and want to facet the plot by x2 while grouping x1. ...
Linus's user avatar
  • 355
0 votes
1 answer
104 views

When I plot the following code with 3 subplots using matplotlib, import numpy as np import matplotlib.pyplot as plt # ====================================== # Base ellipse parameters # ==============...
Arnab Dutta's user avatar
0 votes
1 answer
57 views

I'm working on a project, and I need to do a graph where there is two curves of logistic regression. I'd like to display the curve of the disease status (encoded by 0 and 1), along with the Age (...
How dare you's user avatar
2 votes
0 answers
128 views

I'm working on an antenna 3D polar plot program which need to render real-time plot. Things I'm using: Python 3.11.9 PyQt6 6.9.1 PyQt6-WebEngine-Qt6 6.9.2 plotly 6.3.1 Issue: The code can generate ...
JusMave's user avatar
  • 21
1 vote
1 answer
67 views

I have a dataset with a binary outcome income and two continuous predictors, age, and education_num. I'm fitting a logistic regression model with a natural spline for age and an interaction with ...
Konstantinos Gkirgkiris's user avatar
0 votes
1 answer
80 views

I'm using tidyplots to highlight and label extreme values in a boxplot, but the labels and points appear far from the actual data. Here's a minimal reproducible example. pacman::p_load(dplyr, tidyr, ...
Nikos's user avatar
  • 413
2 votes
2 answers
115 views

Is there a way to plot all points as a jitter next to (not underneath or on top) of a box plot in ggplot2? I can move the points to one side or change the width of jitter, but not both. Edit: Using ...
RJVV's user avatar
  • 105
2 votes
1 answer
55 views

I've been trying hours to show the x axis label in my GraphRAG plot. The below is similar to my actual code but when I run this, the x axis label just doesn't appear? I am not sure if it's because the ...
Hugh L's user avatar
  • 23
1 vote
1 answer
65 views

I've never used stack overflow before, but I don't know who else i can go to for this, so apologies if I don't provide all relevant information. I am using "gnuplot 6.0 patch level 3 console ...
Cleveland4418's user avatar
0 votes
0 answers
54 views

This is my code: par(mar = c(6, 9, 6, 2), mgp = c(5, 1.7, 0)) visreg( model, "decade", by = "altitude.ranges", overlay = TRUE, scale = "response", breaks ...
Michela Gabrieli's user avatar
0 votes
0 answers
47 views

I am trying to recreate altair plots to check my setup and it does not plot the axis ticks and labels. Is there a cached config or settings that I need to clear? source = pd.DataFrame({ 'a': ['A', ...
aeroaks's user avatar
0 votes
2 answers
58 views

I was trying to plot a function with absolute values and it's piecewise counterpart, but matplotlib was ploting the function with jagged corners. Here is my full code: import matplotlib.pyplot as plt ...
Steve03's user avatar
0 votes
1 answer
150 views

It seems accessing axis is easy with fig, ((ax1, ax2,ax3,ax4)) = plt.subplots(2, 4,figsize=(10,8),layout='tight') subfigs = fig.subfigures(2, 4) For example, if I want the ticks (labeling too) on the ...
Spin's user avatar
  • 1
0 votes
0 answers
70 views

My code: def calc_cost_function(w, b, data): m = len(data) cost = 0 for i in range(m): x = data.iloc[i].X y = data.iloc[i].Y cost += ((x * w + b) - y)**2 return ...
Aditya Verma's user avatar
0 votes
0 answers
85 views

I've plotted a curve which involved some transform calculations, and now I want to place a vertical rule at a specific x location that stops at the height corresponding to that line. This is what I'...
Juan Martinez's user avatar
2 votes
1 answer
99 views

I have this python code snippet that sets the ticks of the two y-axes. But I can't figure out how I can synchronize the axe's scales. if y_data_left: all_left = pd.concat([y for _, y, _, _ in ...
Tilcob's user avatar
  • 23
1 vote
1 answer
98 views

I’m trying to solve a problem from Modern Mathematical Methods for Scientists and Engineers using Maple, specifically applying the Fokas method (Unified Transform) to the heat equation on the half-...
Athanasios Paraskevopoulos's user avatar
3 votes
1 answer
115 views

My interactive dashboard where multiple Plotly objects including maps are displayed using nested subplot() in R: library(digest) library(sf) library(jsonlite) library(plotly) library(ggplot2) library(...
User_NAHRUB's user avatar
2 votes
1 answer
78 views

I'm trying to make an area chart of a CDF plot (which should be always increasing), instead I get the result in the image below. import altair as alt import polars as pl _data = pl.DataFrame({"...
Juan Martinez's user avatar
-4 votes
1 answer
101 views

I have a dataset in R that I've already plotted and fitted a logarithmic model to. I'd like to add an additional line on the graph comparing the logarithmic model to a different log equation that I ...
fishing4wall3y3's user avatar
1 vote
0 answers
56 views

we are getting an error while monitoring the custom view dashboard in SAP APIM. While navigating through the dimensions , Custom_error_text1 (Error_Message in API) --> Custom_error_time (...
Vaisu Raj's user avatar
3 votes
1 answer
82 views

I'm trying to draw histograms of a DV (minutes) for each level of the IV (group) using the histBy function in the {psych} package. My dataset contains 3 variables, all of which are numeric. There are ...
Julie Howard's user avatar
0 votes
2 answers
102 views

I have 3 plots that I want to arrange in a 2x2 format. They all share the same legend, and I want to place the legend in the bottom right space, where a fourth figure would fit. So far, I have tried ...
Gabriel's user avatar
  • 121
4 votes
2 answers
90 views

I am trying to plot some dendrograms using dendextend package in R. How to show only selected labels in a circular dendrogram? library(dplyr) library(dendextend) mtcars %>% select(mpg, cyl, ...
Crops's user avatar
  • 5,196
1 vote
2 answers
119 views

This question originates from: r - How to plot alphabets? which is where I came across the hershey package and the vignette. I tried the following: string_df <- hershey::create_string_df(text = &...
user3236841's user avatar
  • 1,396
1 vote
1 answer
86 views

I am having trouble sending a performance::check_model() to a pdf (or the plot window) without it printing twice when I add a title with patchwork::plot_annotation(). check_model is supposed to use ...
MrSwaggins's user avatar
2 votes
1 answer
139 views

I tried to access global elevation raster data from two sources: Source 1 (Natural earth): I downloaded raster data of world elevation from here: https://www.naturalearthdata.com/downloads/10m-raster-...
Patrick's user avatar
  • 1,339
1 vote
1 answer
109 views

I expect the answer is "not possible". I am compiling some matplotlib plots that take a long time to produce. The plots are generated based on data that also takes a long time to produce, ...
Jack's user avatar
  • 161
1 vote
0 answers
127 views

I have a graphic in ggplot that takes too long to compile. Actually, the plot does not appear and I have to force R to stop the compilation. As far as I know, the code has no error, but perhaps due to ...
David Moldes's user avatar
2 votes
1 answer
109 views

I want to plot in log scale in both axis, when using the default base, the graph plotted is correct, but since the y variation of my data is small I would like to change for base=2, when I does this ...
Igor Soares's user avatar
1 vote
1 answer
43 views

Consider the following example of a bar plot in horizontal layout. In each chart the y and color channels both encode column "y" of df. import altair as alt import numpy as np import polars ...
MaxPowers's user avatar
  • 5,541
1 vote
1 answer
40 views

In the below example, I create an bar plot, with the height and the color of the bars both encoding the y column of df. The bars then appear in different shades, for very light to very dark; in blue. ...
MaxPowers's user avatar
  • 5,541
1 vote
1 answer
108 views

I'm trying to plot a map of New Zealand using ggplot2 and sf, showing outer islands as well. I want the x-axis to show longitude ticks from 160°E to 180°E at 5-degree intervals, and the y-axis to show ...
Angela Russell's user avatar
2 votes
2 answers
96 views

I have 6 boxplots. 2 rows, three columns. Here are my boxplots so far: I want to format my boxplots so that the top and bottom graph shares one Y-axis label. Both x-axis labels should move to the far ...
Erik's user avatar
  • 21
0 votes
1 answer
94 views

I am plotting families of orbits in python using matplotlib and the add_subplots() routine: fig=plt.figure() ax=fig.add_subplots(projection='3d') I then loop through my list of [X,Y,Z] series and ...
Albannach5446's user avatar
1 vote
0 answers
111 views

I’m trying to reproduce a PCA biplot where dots = samples coloured by the column sample in pb.obs arrows = genes, pointing toward the region(s) of the plot where each gene is most highly expressed. So ...
Programming Noob's user avatar

1
2 3 4 5
757