Message Boards Message Boards

0
|
1424 Views
|
7 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Customizing ComplexPlot output?

Posted 1 year ago

Hello. I apologize for my English. Is it possible to make it so that in the outputs of the attached file: 1) the background is pure white, without halos or shades, 2) the actual solutions are a red dot, without halos or shades, 3) the imaginary solutions are a green dot, without halos or shades, 4) the complex solutions are a light blue dot, without halos or shades? Many thanks.

Attachments:
POSTED BY: Eduardo Ascolese
7 Replies

Many thanks.

POSTED BY: Eduardo Ascolese

Replace

SolveValues[z^2 - z + 5 == 0, z]

with

(z /. Solve[z^2 - z + 5 == 0, z])
POSTED BY: Gianluca Gorni

Many thanks. Yes. It works! But how to modify the suggestion of Rohit Namjoshi?

POSTED BY: Eduardo Ascolese

This should work in 12.1:

ComplexListPlot[z /. Solve[z^2 - z + 5 == 0, z],
 PlotStyle -> Directive[PointSize[Large], Red],
 PlotRange -> {-4 - 4 I, 4 + 4 I}]
POSTED BY: Gianluca Gorni

Many thanks to Gianluca Gorni and Rohit Namjoshi. Unfortunately, I own version 12.1.1.0 of Mathematica. The SolveValues instruction was introduced in 2021 with version12.3. Many thanks.

POSTED BY: Eduardo Ascolese

Use ComplexListPlot instead of ComplexPlot:

ComplexListPlot[SolveValues[z^2 - z + 5 == 0, z],
 PlotStyle -> Directive[PointSize[Large], Red],
 PlotRange -> {-4 - 4 I, 4 + 4 I}]
POSTED BY: Gianluca Gorni

And if you want the values annotated, wrap them in a Callout

Callout[#, #] & /@ SolveValues[z^2 - z + 5 == 0, z]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract