Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9138

Re: How to remove unwanted, garbage plotmarkers

From JUN <noeckel@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to remove unwanted, garbage plotmarkers
Date 2012-03-19 09:55 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jk6vpl$qn$1@smc.vnet.net> (permalink)
References <jjrv8k$9ga$1@smc.vnet.net>

Show all headers | View raw


On Wednesday, March 14, 2012 10:38:28 PM UTC-7, Myeong Ae Kang wrote:
> I'm enclosing an example.
>
> ListLogPlot[{{{1, 4}, {5, 4*5}, {10, 4*10}}, {{1, 1}, {5, 5}, {10,
>     10}}}, Joined -> True,
>  PlotMarkers -> {\[EmptyCircle], \[EmptyUpTriangle]},
>  PlotRange -> {{0, 10}, {2, 40}}, PlotRangeClipping -> False]
>
> In this example, there is the problematic plotmarker on the X-axis in the plot.
>
>
> I found a similar post to this. But, "Show" with "ListLogPlot" and "PlotRange" doesn't work with this.
>
> Help me.

The workaround for this bug that you mentioned would be:

Show[ListLogPlot[{{{1, 4}, {5, 4*5}, {10, 4*10}}, {{1, 1}, {5,
     5}, {10, 10}}}, Joined -> True,
  PlotMarkers -> {\[EmptyCircle], \[EmptyUpTriangle]},
  PlotRangeClipping -> False], PlotRange -> {{0, 10}, {0, Log[40]}}]

In other words, the trick to add the PlotRange afterwards using show still works, but you have to adjust the range by replacing the maximum 40 with Log[40].

It's a little confusing because ListLogPlot displays a vertical scale that doesn't really reflect the plot range. So we're being tricked here. To see this, one can check AbsoluteOptions[logPlot, PlotRange] where logPlot is the original logarithmic plot in your post. It's really inconsistent...

Jens

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: How to remove unwanted, garbage plotmarkers Myeong Ae Kang <makang@purdue.edu> - 2012-03-15 05:38 +0000
  Re: How to remove unwanted, garbage plotmarkers JUN <noeckel@gmail.com> - 2012-03-19 09:55 +0000

csiph-web