Skip to content

Commit

Permalink
Add basic traits to SeriesLabelPosition and ShapeStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
vchapuis committed Mar 1, 2024
1 parent b42a78e commit 98a75a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plotters/src/chart/series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Useful to specify the position of the series label.
See [`ChartContext::configure_series_labels()`] for more information and examples.
*/
#[derive(Debug, Clone, PartialEq)]
pub enum SeriesLabelPosition {
/// Places the series label at the upper left
UpperLeft,
Expand Down
2 changes: 1 addition & 1 deletion plotters/src/style/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::color::{Color, RGBAColor};
use plotters_backend::{BackendColor, BackendStyle};

/// Style for any shape
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct ShapeStyle {
/// Specification of the color.
pub color: RGBAColor,
Expand Down

0 comments on commit 98a75a4

Please sign in to comment.