()
| 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() { |
nothing calls this directly
no test coverage detected