Skip to content

Commit

Permalink
fix dash_canvas_args.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mazarimono committed Oct 25, 2020
1 parent 448660f commit 1bfba47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch09_dash_additional_components/dash_canvas_args.py
Expand Up @@ -4,12 +4,12 @@
from skimage import io

# ➊ 画像を変数に渡す
filename = array_to_data_url(io.imread("img/bird1.png"))
data = array_to_data_url(io.imread("img/bird1.png"))
app = dash.Dash(__name__)

app.layout = DashCanvas(
id="first-image",
image_content=filename, # ➋ コンポーネントへの画像の読み込み
image_content=data, # ➋ コンポーネントへの画像の読み込み
width=800, # ➌ キャンバスの横幅
lineWidth=12, # ➌書き込みの線の太さ
goButtonTitle="nothing", # ➌ saveボタンのタイトル変更
Expand Down

0 comments on commit 1bfba47

Please sign in to comment.