Virtual Models

2D Coordinate Systems, Box Ratio

Fractal staircase

Overview

In this section we examine relations between coordinate systems in MuPAD and JavaView. One of the major issues that we faced on the beginning of this project was scaling of the axes of a coordinate system. MuPAD, as well as other CAS stretch their plots to fit them into a letter box shaped picture. As a result of this operation we get plots where each axis of the coordinate is scaled individually, with different scale on it. In MuPAD this type of scaling we call unconstrained scaling. When we started this project JavaView was the same scale for all axes of the coordinate system. Therefore, a number of graphs in JavaView were too narrow in one direction and expanded in another direction. Finally, the problem of automatic scaling was solved, and so called box ratio concept was developed.

Another issue that was important for this part of the project was clipping plots in 2D and 3D. Both systems, MuPAD and JavaView, handle properly clipping of graphs. However, xvc2jvx still does not handle properly conversion from MuPAD to JavaView. Therefore, we still obtain models where we have to fix clipping by hand.

Examples

  1. Default coordinate system with constrained scaling
  2. Default coordinate system with unconstrained scaling
  3. Boxed coordinate system, constrained scaling
  4. Boxed coordinate system, unconstrained scaling
  5. Frame coordinate system, constrained scaling
  6. Frame coordinate system, unconstrained scaling
  7. Origin coordinate system, constrained scaling
  8. Origin coordinate system, unconstrained scaling
  9. Coordinate system without axes, constrained scaling
  10. Coordinate system without axes, unconstrained scaling
  11. Coordinate system using line width and line color, cs
  12. Coordinate system using line width and line color, us
  13. Coordinate system using ticks distance, cs  
  14. Coordinate system using ticks distance, us 
  15. Coordinate system using custom setup of ticks, cs  
  16. Coordinate system using custom setup ticks, us  
  17. Coordinate system using custom setup ticks and grid, cs
  18. Coordinate system using custom setup ticks and grid, us
  19. Coordinate system using custom setup ticks, grid and sub grid
  20. Coordinate system using custom setup ticks, grid and sub grid
  21. Coordinate system using custom setup ticks, grid with color 
  22. Coordinate system using custom setup ticks, grid with color 
  23. Difficult plot with vertical asymptotes
  24. Difficult plot with vertical asymptotes and viewing box
  25. Simple plot using viewing box
  26. Final comments
©2005 Miroslaw Majewski (created in Sep. 2004, last update 7/10/2005)