Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added enclosure based plotting #59

Merged
merged 13 commits into from
Jun 16, 2020
Merged

Added enclosure based plotting #59

merged 13 commits into from
Jun 16, 2020

Conversation

RelativeForce
Copy link
Collaborator

@RelativeForce RelativeForce commented Jun 16, 2020

Issues

closes #50

Summary of changes

  • Added parse function that parses the String inputted into the bounds text boxes into a Rational
  • Added Delta type to represent an x and y movement in Rational number space that is used for panning the bounds
  • Altered the XYBounds to use Rational instead of Number
  • Refactored all actions in Main that redraw the plots into a common function
  • When the plots are drawn the "Rough" plot based on Number is drawn first. Once this is drawn an action is triggered to draw the "Robust" plot which is based on Approx. There is an artificial 2 seconds delay before the robust plot is drawn.
  • Added RobustPlot as a data constructor of PlotCommand
  • Refactored Plot.GridLines, Plot.Pan and Plot.Zoom to work with Rational bounds
  • Added Plot.RobustPlot which determines a plot based on Approx where the x domain is broken into 50 segments
  • Updated Components.Canvas to use new Delta type

Tests

N/A

@RelativeForce RelativeForce added the enhancement New feature or request label Jun 16, 2020
@RelativeForce RelativeForce self-assigned this Jun 16, 2020
@RelativeForce RelativeForce marked this pull request as ready for review June 16, 2020 15:58
@RelativeForce RelativeForce merged commit c3aabbf into master Jun 16, 2020
@RelativeForce RelativeForce deleted the draw-enclosures branch June 16, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Draw lines as enclosures
2 participants