Message Boards Message Boards

GROUPS:

Why ListLogPlot with Graphics and Show does not work?

Posted 9 years ago
5561 Views
|
5 Replies
|
2 Total Likes
|

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

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 9 years ago

That is better by far.

POSTED BY: David Keith

Thank you.

POSTED BY: Antonio Squadri
Posted 9 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
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