Skip to content

Commit cebdf5a

Browse files
committed
tensor images - adapted plot widths
1 parent a854550 commit cebdf5a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/dtype_next/image_processing_with_tensors.clj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,8 @@ flat-tensor
644644
tc/dataset
645645
(tc/rename-columns [:blue :green :red])
646646
(plotly/base {:=histogram-nbins 30
647-
:=mark-opacity 0.5})
647+
:=mark-opacity 0.5
648+
:=width 800})
648649
(plotly/layer-histogram {:=x :red
649650
:=mark-color "red"})
650651
(plotly/layer-histogram {:=x :blue
@@ -659,7 +660,7 @@ flat-tensor
659660
(-> (tc/dataset {:x (dtype/as-reader channel)})
660661
(plotly/base {:=title color
661662
:=height 200
662-
:=width 600})
663+
:=width 800})
663664
(plotly/layer-histogram {:=histogram-nbins 30
664665
:=mark-color color})))
665666
["blue" "green" "red"]
@@ -834,7 +835,8 @@ edges
834835
:row-brightness (take 500 row-brightness)})
835836
(plotly/base {:=title "Vertical Brightness Profile (Top 500 rows)"
836837
:=x-title "Row Index"
837-
:=y-title "Mean Brightness"})
838+
:=y-title "Mean Brightness"
839+
:=width 800})
838840
(plotly/layer-line {:=x :vertical-position
839841
:=y :row-brightness
840842
:=mark-color "steelblue"}))
@@ -843,7 +845,8 @@ edges
843845
:col-brightness (take 500 col-brightness)})
844846
(plotly/base {:=title "Horizontal Brightness Profile (Left 500 columns)"
845847
:=x-title "Column Index"
846-
:=y-title "Mean Brightness"})
848+
:=y-title "Mean Brightness"
849+
:=width 800})
847850
(plotly/layer-line {:=x :horizontal-position
848851
:=y :col-brightness
849852
:=mark-color "coral"}))

0 commit comments

Comments
 (0)