Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82d4636

Browse files
authored
fix examples so they can be run locally without offscreen canvas (#294)
1 parent 1cec7a4 commit 82d4636

File tree

8 files changed

+0
-8
lines changed

8 files changed

+0
-8
lines changed

examples/desktop/line/line_colorslice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262

6363
plot.auto_scale()
6464

65-
img = np.asarray(plot.renderer.target.draw())
6665

6766
if __name__ == "__main__":
6867
print(__doc__)

examples/desktop/line/line_dataslice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151

5252
plot.auto_scale()
5353

54-
img = np.asarray(plot.renderer.target.draw())
5554

5655
if __name__ == "__main__":
5756
print(__doc__)

examples/desktop/line/line_present_scaling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
plot.auto_scale()
4747

48-
img = np.asarray(plot.renderer.target.draw())
4948

5049
if __name__ == "__main__":
5150
print(__doc__)

examples/desktop/scatter/scatter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
plot.auto_scale()
3030

31-
img = np.asarray(plot.renderer.target.draw())
3231

3332
if __name__ == "__main__":
3433
print(__doc__)

examples/desktop/scatter/scatter_cmap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
scatter_graphic.cmap = "tab10"
4343

44-
# img = np.asarray(plot.renderer.target.draw())
4544

4645
if __name__ == "__main__":
4746
print(__doc__)

examples/desktop/scatter/scatter_colorslice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
scatter_graphic.colors[75:150] = "white"
3434
scatter_graphic.colors[::2] = "blue"
3535

36-
img = np.asarray(plot.renderer.target.draw())
3736

3837
if __name__ == "__main__":
3938
print(__doc__)

examples/desktop/scatter/scatter_dataslice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
scatter_graphic.data[10:15] = scatter_graphic.data[0:5] + np.array([1, 1, 1])
3737
scatter_graphic.data[50:100:2] = scatter_graphic.data[100:150:2] + np.array([1,1,0])
3838

39-
img = np.asarray(plot.renderer.target.draw())
4039

4140
if __name__ == "__main__":
4241
print(__doc__)

examples/desktop/scatter/scatter_present.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
scatter_graphic.present = False
3434

35-
img = np.asarray(plot.renderer.target.draw())
3635

3736
if __name__ == "__main__":
3837
print(__doc__)

0 commit comments

Comments
 (0)