()
| 1393 | |
| 1394 | #[test] |
| 1395 | fn set_functions_work() { |
| 1396 | let mut plot = Plot::new(); |
| 1397 | plot.set_show_errors(true) |
| 1398 | .set_equal_axes(true) |
| 1399 | .set_equal_axes(false) |
| 1400 | .set_hide_axes(true) |
| 1401 | .set_range_3d(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0) |
| 1402 | .set_range(-1.0, 1.0, -1.0, 1.0) |
| 1403 | .set_range_from_vec(&[0.0, 1.0, 0.0, 1.0]) |
| 1404 | .set_xrange(-80.0, 800.0) |
| 1405 | .set_yrange(13.0, 130.0) |
| 1406 | .set_zrange(44.0, 444.0) |
| 1407 | .set_xmin(-3.0) |
| 1408 | .set_xmax(8.0) |
| 1409 | .set_ymin(-7.0) |
| 1410 | .set_ymax(33.0) |
| 1411 | .set_zmin(12.0) |
| 1412 | .set_zmax(34.0) |
| 1413 | .set_num_ticks_x(0) |
| 1414 | .set_num_ticks_x(8) |
| 1415 | .set_num_ticks_y(0) |
| 1416 | .set_num_ticks_y(5) |
| 1417 | .set_log_x(true) |
| 1418 | .set_log_y(true) |
| 1419 | .set_log_x(false) |
| 1420 | .set_log_y(false) |
| 1421 | .set_label_x("x-label") |
| 1422 | .set_label_y("y-label") |
| 1423 | .set_labels("x", "y") |
| 1424 | .set_camera(1.0, 10.0) |
| 1425 | .set_ticks_x(1.5, 0.5, "%.2f") |
| 1426 | .set_ticks_y(0.5, 0.1, "%g") |
| 1427 | .set_figure_size_inches(2.0, 2.0) |
| 1428 | .set_figure_size_points(7227.0, 7227.0) |
| 1429 | .clear_current_axes() |
| 1430 | .clear_current_figure(); |
| 1431 | let b: &str = "set_equal_axes()\n\ |
| 1432 | plt.gca().axes.set_aspect('auto')\n\ |
| 1433 | plt.axis('off')\n\ |
| 1434 | plt.gca().set_xlim(-1,1)\n\ |
| 1435 | plt.gca().set_ylim(-1,1)\n\ |
| 1436 | plt.gca().set_zlim(-1,1)\n\ |
| 1437 | plt.axis([-1,1,-1,1])\n\ |
| 1438 | plt.axis([0,1,0,1])\n\ |
| 1439 | plt.gca().set_xlim([-80,800])\n\ |
| 1440 | plt.gca().set_ylim([13,130])\n\ |
| 1441 | plt.gca().set_zlim([44,444])\n\ |
| 1442 | plt.gca().set_xlim(left=-3)\n\ |
| 1443 | plt.gca().set_xlim(right=8)\n\ |
| 1444 | plt.gca().set_ylim(bottom=-7)\n\ |
| 1445 | plt.gca().set_ylim(top=33)\n\ |
| 1446 | plt.gca().set_zlim(zmin=12)\n\ |
| 1447 | plt.gca().set_zlim(zmax=34)\n\ |
| 1448 | plt.gca().get_xaxis().set_ticks([])\n\ |
| 1449 | plt.gca().get_xaxis().set_major_locator(tck.MaxNLocator(8))\n\ |
| 1450 | plt.gca().get_yaxis().set_ticks([])\n\ |
| 1451 | plt.gca().get_yaxis().set_major_locator(tck.MaxNLocator(5))\n\ |
| 1452 | plt.gca().set_xscale('log')\n\ |
nothing calls this directly
no test coverage detected