Message Boards Message Boards

0
|
6732 Views
|
5 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Why ListLogPlot with Graphics and Show does not work?

Posted 10 years ago

Dear,

I am testing ListLogPlot command and the following set of instructions did not work. Could you help me?

a = ListLogPlot[{{2, 4}, {3, 27}, {4, 256}}];
b = Graphics[Point[{3.5, 80.21}]];
Show[a, b]

Thank you, Antonio Squadri

POSTED BY: Antonio Squadri
5 Replies
Posted 10 years ago

Try this:

a = ListLogPlot[{{2, 4}, {3, 27}, {4, 256}}];

b = ListLogPlot[{{3.5, 80.21}}, PlotStyle -> Red];

Show[a, b]

enter image description here

POSTED BY: David Keith

To place the point properly in the log plot, the y value needs to be the log.

a = ListLogPlot[{{2, 4}, {3, 27}, {4, 256}}];
b = Graphics[{Red, PointSize[0.1], Point[{3.5, Log[80.21]}]}];
Show[a, b]
POSTED BY: Bruce Miller
Posted 10 years ago

Thank you.

POSTED BY: Antonio Squadri
Posted 10 years ago

That is better by far.

POSTED BY: David Keith
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