Skip to main content

Questions tagged [plot]

The graphical representation of a mathematical function or a set of data. There are different kinds of plots, such as line plots, bar plots, or scatter plots.

0 votes
0 answers
19 views

How to get the surface plot and color bar values to be the same in two different plots

I have two original plots, #1: original data And #2: Fitted data I would like the colors in the two plots to correspond. Meaning, the flat zero-value regions outside of the peaks are the same color, ...
dcpetit's user avatar
0 votes
0 answers
44 views

Plot fourier transform function of anonymous function

I am trying to plot the fourier function of a combination of ramp functions I defined my original function as following: x = @(t) r(t + 1) - 2 * r(t) + r(t - 1); such that I will use it again. I had ...
Farah's user avatar
  • 1
-2 votes
0 answers
25 views

How do I find the intersection points between a line and a rectangle with the values I have? [closed]

I know this is super simple, but I haven't used this math in years and it's struggle street for me right now. Basically looking for formulas to plug in (A,B)(C,D)(x1,y1)(x2,y2) to find find h1,v1 &...
pug's user avatar
  • 7
1 vote
1 answer
42 views

Visualization of graphs according to the size of the data

I am making some graphs using different datasets, but when I change the data the graph loses its shape and does not look good. I don't know if there is a way to write something in the code to make the ...
Oggy's user avatar
  • 11
0 votes
0 answers
26 views

How to interpolate a 2D Scatter plot in python

I have the following problem: I am working with ultrasonic data from a sector scan. An example is shown in the following: From the file I am reading I receive a 2D array. One dimension is the phase ...
mzr97's user avatar
  • 69
0 votes
0 answers
6 views

Plotting SHmax data from World Stress Map

I have a .dat data of SHmax orientation from WSM database, but I want to plot it by myself without using CASMO app. Can you help me to plot it ? Here is a example of that datasets (in .dat extension): ...
Asyer Octav's user avatar
-1 votes
1 answer
31 views

wxMathPlot plot freezes the system on resize

I have a plot created using wxMathplot library, at initial lunch the plot works perfect, but when I resize the window it stucks and the laptop freezes until I restart it, before the freeze, I noticed ...
Hzine's user avatar
  • 123
0 votes
1 answer
24 views

Set grid frequency for plot

I have a very simple code that plots points by coordinates (x, y) def separate_file(coordinates): new_document_x, new_document_y = zip(*coordinates) plt.gca().invert_yaxis() plt.plot(...
Paul's user avatar
  • 125
0 votes
0 answers
18 views

plot grid error 'Cannot convert object of class numeric into a grob.' but all of my object are class "gg"

I'm trying to generate a plot combining 9 plots using the function plot_grid. Here is my script : plot_grid(plot_grid(penchy, pver, pplante, ncol=3), plot_grid(p_adplante_benchy, p_adver_benchy, ...
mrlaperche's user avatar
0 votes
0 answers
21 views

How can I create interaction plots for categorical predictors of a gbm.step object in dismo?

I am attempting to use the dismo package to make interaction plots for my model. Other examples (such as this thread) give great tutorials for continuous predictors but I cannot understand how to even ...
Gabe Runte's user avatar
0 votes
0 answers
27 views

Easiest way to overlay an existing histplot with a theoretical lognormal PDF in Python

I have data in a series df that I'd like to visually assess (via simple plotting and hist/displot in Seaborn). I have the below so far but wonder what is the easiest way to add a lognormal pdf for ...
Chris's user avatar
  • 1,633
1 vote
1 answer
46 views

Dynamic update of plot in Matplotlib generating strange lines

I'm trying use dynamically add rectangles to a plot using Matplotlib but some weird lines are showing up in the plot. My grid is a class with init and an update function to add new rectangle shapes ...
Yuushabio's user avatar
0 votes
0 answers
14 views

Change font and tick size second y axis of SHAP dependence plot

Do you know how it is possible to change the size of the font label and tick of the second y axis of the SHAP dependence plot in python?
Pachita's user avatar
0 votes
1 answer
45 views

ggplot2 change graph attributes like certain linewidth or graph size? [closed]

A function from an R package returns a ggplot2 plot object. How do I change the attributes in it, like in Python matplotlib, I can access the fig.axes[0].set_... functions? There are a lot of ...
Aria Nova's user avatar
0 votes
0 answers
11 views

Changing variable names in a plot - SJplot

I am trying to change the variable names in a plot to make them more intuitive. For example, in the replicable example below I am tryimng to change "cyl" to the "Number of cylinders&...
James Prentice's user avatar

15 30 50 per page
1
2 3 4 5
2525