diff --git a/docs/example_generation.jl b/docs/example_generation.jl index 62df6f5f..df569e9c 100644 --- a/docs/example_generation.jl +++ b/docs/example_generation.jl @@ -28,11 +28,11 @@ const examples = PlotExample[ PlotExample("Global", "Change the guides/background without a separate call.", [:(plot(rand(10); title="TITLE", xlabel="XLABEL", ylabel="YLABEL", background_color = RGB(0.5,0.5,0.5)))]), - PlotExample("Vectors", - "Plot multiple series with different numbers of points.", - [:(plot(Vector[rand(10), rand(20)]; marker=:ellipse, markersize=8))]), + PlotExample("Two-axis", + "Use the `axis` or `axiss` arguments.\n\nNote: This is only supported with Qwt right now", + [:(plot(Vector[randn(100), randn(100)*100]; axiss = [:left,:right]))]), PlotExample("Vectors w/ pluralized args", - "Mix arguments that apply to all series with arguments unique to each series.", + "Plot multiple series with different numbers of points. Mix arguments that apply to all series (singular... see `marker`) with arguments unique to each series (pluralized... see `colors`).", [:(plot(Vector[rand(10), rand(20)]; marker=:ellipse, markersize=8, colors=[:red,:blue]))]), PlotExample("Build plot in pieces", "Start with a base plot...", diff --git a/docs/gadfly_examples.md b/docs/gadfly_examples.md index ed1a8fe5..f1f6342c 100644 --- a/docs/gadfly_examples.md +++ b/docs/gadfly_examples.md @@ -28,19 +28,21 @@ plot(rand(10); title="TITLE",xlabel="XLABEL",ylabel="YLABEL",background_color=RG ![](../img/gadfly_example_3.png) -### Vectors +### Two-axis -Plot multiple series with different numbers of points. +Use the `axis` or `axiss` arguments. + +Note: This is only supported with Qwt right now ```julia -plot(Vector[rand(10),rand(20)]; marker=:ellipse,markersize=8) +plot(Vector[randn(100),randn(100) * 100]; axiss=[:left,:right]) ``` ![](../img/gadfly_example_4.png) ### Vectors w/ pluralized args -Mix arguments that apply to all series with arguments unique to each series. +Plot multiple series with different numbers of points. Mix arguments that apply to all series (singular... see `marker`) with arguments unique to each series (pluralized... see `colors`). ```julia plot(Vector[rand(10),rand(20)]; marker=:ellipse,markersize=8,colors=[:red,:blue]) diff --git a/docs/qwt_examples.md b/docs/qwt_examples.md index 3cbea9de..3d0d5875 100644 --- a/docs/qwt_examples.md +++ b/docs/qwt_examples.md @@ -28,19 +28,21 @@ plot(rand(10); title="TITLE",xlabel="XLABEL",ylabel="YLABEL",background_color=RG ![](../img/qwt_example_3.png) -### Vectors +### Two-axis -Plot multiple series with different numbers of points. +Use the `axis` or `axiss` arguments. + +Note: This is only supported with Qwt right now ```julia -plot(Vector[rand(10),rand(20)]; marker=:ellipse,markersize=8) +plot(Vector[randn(100),randn(100) * 100]; axiss=[:left,:right]) ``` ![](../img/qwt_example_4.png) ### Vectors w/ pluralized args -Mix arguments that apply to all series with arguments unique to each series. +Plot multiple series with different numbers of points. Mix arguments that apply to all series (singular... see `marker`) with arguments unique to each series (pluralized... see `colors`). ```julia plot(Vector[rand(10),rand(20)]; marker=:ellipse,markersize=8,colors=[:red,:blue]) diff --git a/img/gadfly_example_1.png b/img/gadfly_example_1.png index a945509c..d70f3375 100644 Binary files a/img/gadfly_example_1.png and b/img/gadfly_example_1.png differ diff --git a/img/gadfly_example_10.png b/img/gadfly_example_10.png index bcb43962..5712f4c0 100644 Binary files a/img/gadfly_example_10.png and b/img/gadfly_example_10.png differ diff --git a/img/gadfly_example_11.png b/img/gadfly_example_11.png index 1bde9ac9..6ec6bcd0 100644 Binary files a/img/gadfly_example_11.png and b/img/gadfly_example_11.png differ diff --git a/img/gadfly_example_12.png b/img/gadfly_example_12.png index 56df3863..24d3c820 100644 Binary files a/img/gadfly_example_12.png and b/img/gadfly_example_12.png differ diff --git a/img/gadfly_example_13.png b/img/gadfly_example_13.png index f32cca27..1615e764 100644 Binary files a/img/gadfly_example_13.png and b/img/gadfly_example_13.png differ diff --git a/img/gadfly_example_3.png b/img/gadfly_example_3.png index e8adfe80..642c07e5 100644 Binary files a/img/gadfly_example_3.png and b/img/gadfly_example_3.png differ diff --git a/img/gadfly_example_4.png b/img/gadfly_example_4.png index 7362467e..206134c9 100644 Binary files a/img/gadfly_example_4.png and b/img/gadfly_example_4.png differ diff --git a/img/gadfly_example_5.png b/img/gadfly_example_5.png index 23323834..2a011296 100644 Binary files a/img/gadfly_example_5.png and b/img/gadfly_example_5.png differ diff --git a/img/gadfly_example_6.png b/img/gadfly_example_6.png index 392050b8..4862c0e9 100644 Binary files a/img/gadfly_example_6.png and b/img/gadfly_example_6.png differ diff --git a/img/gadfly_example_7.png b/img/gadfly_example_7.png index e7f63115..9d9092f0 100644 Binary files a/img/gadfly_example_7.png and b/img/gadfly_example_7.png differ diff --git a/img/gadfly_example_8.png b/img/gadfly_example_8.png index 82f0e08e..b24f77ab 100644 Binary files a/img/gadfly_example_8.png and b/img/gadfly_example_8.png differ diff --git a/img/gadfly_example_9.png b/img/gadfly_example_9.png index 6898c679..d28ae7c7 100644 Binary files a/img/gadfly_example_9.png and b/img/gadfly_example_9.png differ diff --git a/img/qwt_example_1.png b/img/qwt_example_1.png index 1510df50..269d0e7d 100644 Binary files a/img/qwt_example_1.png and b/img/qwt_example_1.png differ diff --git a/img/qwt_example_10.png b/img/qwt_example_10.png index e645f3c2..07b60409 100644 Binary files a/img/qwt_example_10.png and b/img/qwt_example_10.png differ diff --git a/img/qwt_example_11.png b/img/qwt_example_11.png index 3a39e4cf..483438cf 100644 Binary files a/img/qwt_example_11.png and b/img/qwt_example_11.png differ diff --git a/img/qwt_example_12.png b/img/qwt_example_12.png index ddb1be2e..366b86f0 100644 Binary files a/img/qwt_example_12.png and b/img/qwt_example_12.png differ diff --git a/img/qwt_example_13.png b/img/qwt_example_13.png index d7194169..53dc52a0 100644 Binary files a/img/qwt_example_13.png and b/img/qwt_example_13.png differ diff --git a/img/qwt_example_3.png b/img/qwt_example_3.png index 6195d0bf..557a4727 100644 Binary files a/img/qwt_example_3.png and b/img/qwt_example_3.png differ diff --git a/img/qwt_example_4.png b/img/qwt_example_4.png index 6185d49a..0ec88638 100644 Binary files a/img/qwt_example_4.png and b/img/qwt_example_4.png differ diff --git a/img/qwt_example_5.png b/img/qwt_example_5.png index d0b2a0c2..eb759794 100644 Binary files a/img/qwt_example_5.png and b/img/qwt_example_5.png differ diff --git a/img/qwt_example_6.png b/img/qwt_example_6.png index 53386ec6..18f8e9ef 100644 Binary files a/img/qwt_example_6.png and b/img/qwt_example_6.png differ diff --git a/img/qwt_example_7.png b/img/qwt_example_7.png index 400423bd..834b01a3 100644 Binary files a/img/qwt_example_7.png and b/img/qwt_example_7.png differ diff --git a/img/qwt_example_8.png b/img/qwt_example_8.png index e99e13e9..8f0c9eac 100644 Binary files a/img/qwt_example_8.png and b/img/qwt_example_8.png differ diff --git a/img/qwt_example_9.png b/img/qwt_example_9.png index 97f73b29..bfb133b7 100644 Binary files a/img/qwt_example_9.png and b/img/qwt_example_9.png differ