Skip to content

Commit 678f412

Browse files
Reintroducing original "so graph" text label, adding name attribute for plot differentiation
1 parent ad8213c commit 678f412

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

demo/src/plot_demo.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,13 @@ impl ItemsDemo {
819819
plot_ui.polygon(polygon.name("Convex polygon").id("convex_polygon"));
820820
plot_ui.points(points.name("Points with stems").id("points_with_stems"));
821821
plot_ui.text(Text::new("Text", PlotPoint::new(-3.0, -3.0), "wow").id("text0"));
822+
plot_ui.text(Text::new("Text", PlotPoint::new(-2.0, 2.5), "so graph").id("text1"));
822823
plot_ui.text(
823-
Text::new("Text", PlotPoint::new(-2.0, 2.5), "so graph")
824+
Text::new("Text", PlotPoint::new(-2.0, 2.5), "Very angle")
824825
.angle(-std::f32::consts::FRAC_PI_4)
825826
.anchor(Align2::CENTER_TOP)
826-
.id("text1"),
827+
.name("Angled text")
828+
.id("text_angled"),
827829
);
828830
plot_ui.text(Text::new("Text", PlotPoint::new(3.0, 3.0), "much color").id("text2"));
829831
plot_ui.text(Text::new("Text", PlotPoint::new(2.5, -2.0), "such plot").id("text3"));

0 commit comments

Comments
 (0)