Skip to main content

All Questions

Tagged with
0 votes
0 answers
25 views

Jupyter Hub coding issue

having a bit of trouble with some code here and I'm not sure what I'm doing wrong. I created my first plot using a dataframe and wrote the code like this (it accurately produced the plot I needed): ...
Jakob's user avatar
  • 1
3 votes
0 answers
134 views

How can I plot a histogram on rotated axis in projection space (LDA)

I used the mean separation criterion (find parameter w that maximizes distance between class means) as well as Fisher LDA to find a nice line to separate two linearly separable classes. Then I plotted ...
dg_m87's user avatar
  • 67
0 votes
0 answers
30 views

Creating plots for T periods Matlab to python

I have this code from matlab that I am trying to translate to Python: N = 75; N1=31; sigma_a=.08; P0 = log(sigma/(sigma-1)); min = -.15+P0; max = .15+P0; P = linspace(min,max,N)'; e= linspace(min,max,...
Kathrin_L_A's user avatar
0 votes
1 answer
220 views

Generate Matlab Plot to Jupyter Notebook

When i run this code to python notebook, generates a plot in MATLAB correctly based on the condition i have assign. I will like to display it to the python notebook and not in the matlab. import ...
AngelGK's user avatar
-1 votes
2 answers
397 views

Python alternative to MATLAB's semilogy

What is the Python alternative for MATLAB's semilogy plotting function?
abhishek's user avatar
0 votes
0 answers
16 views

adress plots in python [duplicate]

I would like to something I have done in matlab with python: for loop fig1 = figure(1) plot(d,y); hold on xlabel('steps[m]'); ylabel('tips'); title('Title'); ...
Flo Meier's user avatar
1 vote
1 answer
610 views

What is the equivalent of Matlab "axis xy" in Matplotlib?

I'm trying to plot a soundfield both in matlab and python but if Matlab allows me to do like this: imagesc(x,y,real(sf_vsrc)); colorbar; axis xy title('soundfield ground truth'); using python I'm ...
Ciccios_1518's user avatar
-1 votes
2 answers
2k views

How to plot heatmap of 3 variables (depth, time, parameter)

I have temperature data which varies with time and depth (see attached example picture). My actual data set is lot bigger though. I was wondering how can I plot a heatmap. I am open to either Python ...
Shahriar Mahmud's user avatar
7 votes
1 answer
9k views

Is there a MatLab equivalent of Python matplotlib's tight_layout()?

I find the amount of whitespace around plots in both normal Python Matplotlib and Matlab quite annoying, specifically the left and right margins that make your plot look tiny when inserting the saved (...
Rob H.'s user avatar
  • 111
0 votes
2 answers
136 views

Problem with the y-values of the power spectrum plotted in python

I have got some data and I used MATLAB to plot the power spectrum. But I struggled to translate the same instructions to Python and obtain the exact plot. The shape of the plot obtained in Python ...
Khalid's user avatar
  • 13
0 votes
1 answer
749 views

non linear regression scatter plot

My data points are: x =[5.00E-07, 1.40E-06, 4.10E-06, 1.25E-05, 3.70E-05, 1.11E-04, 0.33E-04, 1.00E-03] y= [494.55, 333.4666667, 333.3333333, 333.1, 303.4966667, 197.7533333, 66.43333333, 67.715] The ...
Simone de Jonge's user avatar
-1 votes
1 answer
955 views

Plot two point in a 5 dimensional space

I have a 5-D space. I want to point out 2 point ((1, 4, 12, 18, 28) & (1, 4, 128, 128, 128)) in that space. Is it possible to plot a visualization using MatLab Or Python? Any kinds of help will be ...
user avatar
1 vote
2 answers
1k views

plotting with symbols on x and y axis

Hi, I would like to have the above figure, it could be coded on matlab or python (might be good to learn to do how in both languages though). Do you guys have similar experience before?
user229519's user avatar
-1 votes
1 answer
85 views

Representing vector field with ovals and color

I have a vector field which shows the direction of some ovals in different positions with different aspect ratio. I could plot it in Matlab by the below script: [X, Y] = meshgrid(1:size(nx,1), 1:size(...
sara nj's user avatar
  • 207
1 vote
0 answers
270 views

How to plot one pandas dataframe on top of another (capped by one)

I have two panda dataframes: print(df.change) date % change 2020-04-13 0.00000 2020-04-14 -1.00230 2020-04-15 -1.29039 I'd like to plot this on a line graph with the date on the X ...
Andy's user avatar
  • 155

15 30 50 per page
1
2 3 4 5