开发者

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

开发者 https://www.devze.com 2023-03-09 14:22 出处:网络
The doc for RegionFunction states: However, RegionFunction is not mentioned in the doc for ListLinePlot.

The doc for RegionFunction states:

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

However, RegionFunction is not mentioned in the doc for ListLinePlot. Trying to u开发者_开发知识库se it:

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

So, it seems a doc issue. Any ideas?


I think it's a bug, in the documentation. Supporting RegionFunction in List(Line)Plot would be a good feature addition, however. (Please email support@wolfram.com.)


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}]]
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号