Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa1e974

Browse filesBrowse files
committed
fix some examples
1 parent f543e4a commit aa1e974
Copy full SHA for aa1e974

File tree

5 files changed

+8
-8
lines changed
Filter options

5 files changed

+8
-8
lines changed

‎examples/desktop/image/image_rgbvminvmax.py

Copy file name to clipboardExpand all lines: examples/desktop/image/image_rgbvminvmax.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
fig[0, 0].auto_scale()
2525

26-
image_graphic.cmap.vmin = 0.5
27-
image_graphic.cmap.vmax = 0.75
26+
image_graphic.vmin = 0.5
27+
image_graphic.vmax = 0.75
2828

2929

3030
if __name__ == "__main__":

‎examples/desktop/image/image_vminvmax.py

Copy file name to clipboardExpand all lines: examples/desktop/image/image_vminvmax.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
fig[0, 0].auto_scale()
2525

26-
image_graphic.cmap.vmin = 0.5
27-
image_graphic.cmap.vmax = 0.75
26+
image_graphic.vmin = 0.5
27+
image_graphic.vmax = 0.75
2828

2929

3030
if __name__ == "__main__":

‎examples/desktop/image/image_widget.py

Copy file name to clipboardExpand all lines: examples/desktop/image/image_widget.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
a = iio.imread("imageio:camera.png")
13-
iw = fpl.ImageWidget(data=a, cmap="viridis")
13+
iw = fpl.ImageWidget(data=a, cmap="viridis", histogram_widget=False)
1414
iw.show()
1515

1616

‎examples/desktop/line/line_cmap.py

Copy file name to clipboardExpand all lines: examples/desktop/line/line_cmap.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
data=cosine,
3636
thickness=10,
3737
cmap="tab10",
38-
cmap_values=cmap_values
38+
cmap_values=np.array(cmap_values)
3939
)
4040

4141
fig.show()

‎examples/desktop/line/line_colorslice.py

Copy file name to clipboardExpand all lines: examples/desktop/line/line_colorslice.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
key = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 67, 19])
5454
sinc_graphic.colors[key] = "Red"
5555

56-
key2 = np.array([True, False, True, False, True, True, True, True])
57-
cosine_graphic.colors[key2] = "Green"
56+
#key2 = np.array([True, False, True, False, True, True, True, True])
57+
#cosine_graphic.colors[key2] = "Green"
5858

5959
fig.canvas.set_logical_size(800, 800)
6060

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.