From 5311c27ee8de3ec5c0260ccb43fe22f239c7a8a4 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 16 Oct 2017 21:00:16 -0700 Subject: [PATCH] Update plot.md --- docs/src/basics/plot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/basics/plot.md b/docs/src/basics/plot.md index 99ecb2a0cc..0a6a87297f 100644 --- a/docs/src/basics/plot.md +++ b/docs/src/basics/plot.md @@ -125,6 +125,18 @@ on high dimensional numbers (complex numbers) and other high dimensional plots. See [the README](https://github.com/JuliaDiffEq/DimensionalPlotRecipes.jl) for more details on the extra controls that exist. +### Timespan + +A plotting timespan can be chosen by the `tspan` argument in `plot`. For example: + +```julia +plot(sol,tspan=(0.0,40.0)) +``` + +only plots between `t=0.0` and `t=40.0`. If `denseplot=true` these bounds will be respected +exactly. Otherwise the first point inside and last point inside the interval will be plotted, +i.e. no points outside the interval will be plotted. + ### Example ```julia