Package: rust-plotters / 0.3.7-2

disable-examples.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
--- a/Cargo.toml
    b/Cargo.toml
@@ -50,110  50,6 @@
 name = "plotters"
 path = "src/lib.rs"
 
-[[example]]
-name = "3d-plot"
-path = "examples/3d-plot.rs"
-
-[[example]]
-name = "3d-plot2"
-path = "examples/3d-plot2.rs"
-
-[[example]]
-name = "animation"
-path = "examples/animation.rs"
-
-[[example]]
-name = "area-chart"
-path = "examples/area-chart.rs"
-
-[[example]]
-name = "blit-bitmap"
-path = "examples/blit-bitmap.rs"
-
-[[example]]
-name = "boxplot"
-path = "examples/boxplot.rs"
-
-[[example]]
-name = "chart"
-path = "examples/chart.rs"
-
-[[example]]
-name = "colormaps"
-path = "examples/colormaps.rs"
-
-[[example]]
-name = "console"
-path = "examples/console.rs"
-
-[[example]]
-name = "customized_coord"
-path = "examples/customized_coord.rs"
-
-[[example]]
-name = "errorbar"
-path = "examples/errorbar.rs"
-
-[[example]]
-name = "full_palette"
-path = "examples/full_palette.rs"
-
-[[example]]
-name = "histogram"
-path = "examples/histogram.rs"
-
-[[example]]
-name = "mandelbrot"
-path = "examples/mandelbrot.rs"
-
-[[example]]
-name = "matshow"
-path = "examples/matshow.rs"
-
-[[example]]
-name = "nested_coord"
-path = "examples/nested_coord.rs"
-
-[[example]]
-name = "normal-dist"
-path = "examples/normal-dist.rs"
-
-[[example]]
-name = "normal-dist2"
-path = "examples/normal-dist2.rs"
-
-[[example]]
-name = "pie"
-path = "examples/pie.rs"
-
-[[example]]
-name = "relative_size"
-path = "examples/relative_size.rs"
-
-[[example]]
-name = "sierpinski"
-path = "examples/sierpinski.rs"
-
-[[example]]
-name = "slc-temp"
-path = "examples/slc-temp.rs"
-
-[[example]]
-name = "snowflake"
-path = "examples/snowflake.rs"
-
-[[example]]
-name = "stock"
-path = "examples/stock.rs"
-
-[[example]]
-name = "tick_control"
-path = "examples/tick_control.rs"
-
-[[example]]
-name = "two-scales"
-path = "examples/two-scales.rs"
-
 [[bench]]
 name = "benchmark"
 path = "benches/main.rs"
--- a/src/lib.rs
    b/src/lib.rs
@@ -310,7  310,7 @@
 
 And the following code draws a quadratic function. `src/main.rs`,
 
-```rust
 ```rust,ignore
 use plotters::prelude::*;
 fn main() -> Result<(), Box<dyn std::error::Error>> {
     let root = BitMapBackend::new("plotters-doc-data/0.png", (640, 480)).into_drawing_area();
@@ -458,7  458,7 @@
 ### Drawing Backends
 Plotters can use different drawing backends, including SVG, BitMap, and even real-time rendering. For example, a bitmap drawing backend.
 
-```rust
 ```rust,ignore
 use plotters::prelude::*;
 fn main() -> Result<(), Box<dyn std::error::Error>> {
     // Create a 800*600 bitmap and start drawing
@@ -480,7  480,7 @@
 
 Besides that, the drawing area also allows for a customized coordinate system, by doing so, the coordinate mapping is done by the drawing area automatically.
 
-```rust
 ```rust,ignore
 use plotters::prelude::*;
 fn main() -> Result<(), Box<dyn std::error::Error>> {
     let root_drawing_area =
@@ -508,7  508,7 @@
 
 To learn more about the element system, please read the [element module documentation](./element/index.html).
 
-```rust
 ```rust,ignore
 use plotters::prelude::*;
 fn main() -> Result<(), Box<dyn std::error::Error>> {
     let root = BitMapBackend::new("plotters-doc-data/3.png", (300, 200)).into_drawing_area();
@@ -534,7  534,7 @@
 
 For example, we can have an element which includes a dot and its coordinate.
 
-```rust
 ```rust,ignore
 use plotters::prelude::*;
 use plotters::coord::types::RangedCoordf32;
 
@@ -576,7  576,7 @@
 For example, you can define the label areas, meshes, and put a data series onto the drawing area with the help
 of the chart context object.
 
-```rust
 ```rust,ignore
 use plotters::prelude::*;
 fn main() -> Result<(), Box<dyn std::error::Error>> {
     let root = BitMapBackend::new("plotters-doc-data/5.png", (640, 480)).into_drawing_area();