Group Abstract Group Abstract

Message Boards Message Boards

0
|
63 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How do I get the real values of one variable out of a ReImPlot plot?

Posted 3 days ago

I have ReImPlot plots that show the dependence of the variable V0, V-1 on sigma (conductivity), chi0, chi-1 on sigma. I have the equations for them fully written in the program, which include common variables that are not changed in the program. If to use short equations (as it was shown above in the program, for example for V0, V1), then ReImPlot will not build the graph correctly, and will build straight lines (that is there will be no dependence between these variables).
How can I pull the actual values of V0 (red line on the graph) and the corresponding sigma value from the graph in some increments (0, 5000, 10000, 15000) (with the increment being the sigma variable itself)?

POSTED BY: Nikita Averin
3 Replies

I think it is dangerous to give a numerical value to sigma, and then to use sigma as a free variable.

POSTED BY: Gianluca Gorni
Posted 3 days ago

lines = Cases[PlotV, Line[p_] :> p, Infinity] returns the xy-coordinate tables for all four lines.

  • lines[[1]] is the real part of function 1;
  • lines[[2]] is the real part of function 2;
  • lines[[3]] is the imaginary part of function 1;
  • lines[[4]] is the imaginary part of function 2.

The actual values of σ will probably seem random, and determining which to keep and which to discard takes more work. However, Table[{σ, f[σ]}, {σ, 0, 20000, 5000}], where f[σ] is the function expression, seems easier. Consider also Table[{σ, Re[f[σ]]}, {σ, 0, 20000, 5000}] and Table[{σ, Im[f[σ]]}, {σ, 0, 20000, 5000}], if you want the real and imaginary parts separately.

POSTED BY: Updating Name
Posted 3 days ago

Can you explain what function do you mean by 'function expression' please? Also, when I executing Table[{σ, f[σ]}, {σ, 0, 20000, 5000}], I get: {{0, Re[f[0]]}, {5000, Re[f[5000]]}, {10000, Re[f[10000]]}, {15000, Re[f[15000]]}, {20000, Re[f[20000]]}} Is this correct?

POSTED BY: Nikita Averin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard