Skip to content

Commit 1ab4ac1

Browse files
Positioning demo label to avoid existing "so graph" label, updating anchor to better demonstrate how it affects positioning
1 parent 873be17 commit 1ab4ac1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

demo/src/plot_demo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,9 @@ impl ItemsDemo {
821821
plot_ui.text(Text::new("Text", PlotPoint::new(-3.0, -3.0), "wow").id("text0"));
822822
plot_ui.text(Text::new("Text", PlotPoint::new(-2.0, 2.5), "so graph").id("text1"));
823823
plot_ui.text(
824-
Text::new("Text", PlotPoint::new(-2.0, 2.5), "Very angle")
824+
Text::new("Text", PlotPoint::new(-1.5, 2.0), "Very angle")
825825
.angle(-std::f32::consts::FRAC_PI_4)
826-
.anchor(Align2::CENTER_TOP)
826+
.anchor(Align2::LEFT_TOP)
827827
.name("Angled text")
828828
.id("text_angled"),
829829
);

0 commit comments

Comments
 (0)