Debian Codegraph @

debian/patches/disable-examples.patch

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