pub struct Text {
pub x: f64,
pub y: f64,
pub s: String,
pub opts: Vec<Opt>,
}
Expand description
Some text placed in a plot via data coordinates.
ax.text({x}, {y}, {s}, **{opts})
Prelude: No
JSON data: [float, float, str]
See also AxText
.
Fields§
§x: f64
X-coordinate.
y: f64
Y-coordinate.
s: String
Text to place.
opts: Vec<Opt>
Optional keyword arguments.
Implementations§
Trait Implementations§
source§impl Matplotlib for Text
impl Matplotlib for Text
source§fn is_prelude(&self) -> bool
fn is_prelude(&self) -> bool
Return
true
if self
should be considered as a prelude item, which
are execute in the order seen but before any non-prelude items.source§impl MatplotlibOpts for Text
impl MatplotlibOpts for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)