MCPcopy Create free account
hub / github.com/cpmech/plotpy / additional_features_work

Function additional_features_work

src/plot.rs:1618–1639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1616
1617 #[test]
1618 fn additional_features_work() {
1619 let mut plot = Plot::new();
1620 plot.set_inv_x()
1621 .set_inv_y()
1622 .set_hide_xticks()
1623 .set_hide_yticks()
1624 .set_hide_zticks()
1625 .set_label_x_and_pad("X IS CLOSER NOW", -15.0)
1626 .set_label_y_and_pad("Y IS CLOSER NOW", -25.0)
1627 .set_label_z_and_pad("Z IS CLOSER NOW", -35.0)
1628 .extra("plt.show()\n");
1629 let b: &str = "plt.gca().invert_xaxis()\n\
1630 plt.gca().invert_yaxis()\n\
1631 plt.gca().set_xticklabels([])\n\
1632 plt.gca().set_yticklabels([])\n\
1633 plt.gca().set_zticklabels([])\n\
1634 plt.gca().set_xlabel(r'X IS CLOSER NOW',labelpad=-15)\n\
1635 plt.gca().set_ylabel(r'Y IS CLOSER NOW',labelpad=-25)\n\
1636 plt.gca().set_zlabel(r'Z IS CLOSER NOW',labelpad=-35)\n\
1637 plt.show()\n";
1638 assert_eq!(plot.buffer, b);
1639 }
1640
1641 #[test]
1642 fn gridspec_functions_work() {

Callers

nothing calls this directly

Calls 9

extraMethod · 0.80
set_label_z_and_padMethod · 0.80
set_label_y_and_padMethod · 0.80
set_label_x_and_padMethod · 0.80
set_hide_zticksMethod · 0.80
set_hide_yticksMethod · 0.80
set_hide_xticksMethod · 0.80
set_inv_yMethod · 0.80
set_inv_xMethod · 0.80

Tested by

no test coverage detected