Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mathematica: ListLinePlot & RegionFunction - a bug or a documentation issue?

The doc for RegionFunction states:

enter image description here

However, RegionFunction is not mentioned in the doc for ListLinePlot. Trying to use it:

enter image description here

So, it seems a doc issue. Any ideas?

like image 281
Dr. belisarius Avatar asked May 29 '11 08:05

Dr. belisarius


People also ask

How do you change the size of a point in Mathematica?

You can also change the size of points in a plot by using the graphics directives PointSize or AbsolutePointSize with the PlotStyle option. Here, PointSize is used with PlotStyle to set the size of points in the plot.


1 Answers

I think it's a bug, in the documentation. Supporting RegionFunction in List(Line)Plot would be a good feature addition, however. (Please email [email protected].)


One workaround would be to replace points that are "out of bounds" with None:

ListLinePlot[
 Function[{w, y}, If[y < 0.5, {w, y}, None]] @@@ 
  Table[{x, Sin[x]}, {x, 0, 2 Pi, 0.1}]]
like image 106
Brett Champion Avatar answered Oct 19 '22 16:10

Brett Champion