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

2D Charts improvements #266

Closed
18 of 21 tasks
jzy3d opened this issue May 9, 2022 · 3 comments · Fixed by #267
Closed
18 of 21 tasks

2D Charts improvements #266

jzy3d opened this issue May 9, 2022 · 3 comments · Fixed by #267
Milestone

Comments

@jzy3d
Copy link
Owner

jzy3d commented May 9, 2022

Features

  • Layout : Fill parent panel, ideally define in terms of left/right/top/bottom border margin
  • Layout : Tick placement centered, without the processing usual 3D placement left/side
  • Layout : Tick line inside or outside (see chart.view2d() which disable ticks)
  • Layout : Reverse direction of Y axis values (left for later)
  • Layout : Y axis title should flip 90°
  • Layout : Show logo on left bottom side
  • Layout : ensure colorbar margins are relevant with axis margins
  • Layout : ensure colorbar layout remains the same on EmulGL and Native (EmulGL case will fail)
  • Layout : ensure HiDPI is properly supported (left for later 2D charts should have a consistent layout when switching from HiDPI to no HiDPI #268)
  • Layout : allow image logo to be displayed on any corner without covering tick labels
  • Layout : allow SVG logo (left for later Allow rendering java.awt.Shape in post renderers to show logos #270)
  • API : a common chart.getLayout() (left for later)
  • Mouse : should be disabled when view is 2D

Results

image

Bugs

Code cleanup

  • Delete former Axis2D, Chart2D, etc classes (still referenced by the 2D tutorials)
  • Remove AWTColorbarImageGenerator.MIN_BAR_WIDTH

Tests

@jzy3d jzy3d linked a pull request May 16, 2022 that will close this issue
@jzy3d
Copy link
Owner Author

jzy3d commented May 23, 2022

A 2D chart with layout debugger enabled

Capture d’écran 2022-05-23 à 12 26 48

@jzy3d
Copy link
Owner Author

jzy3d commented May 23, 2022

Other API changes

  • deleted IAxisLayout, only using AxisLayout class
  • few fixes on BoundingBox2d()

@jzy3d jzy3d added this to the 2.1.0 milestone May 24, 2022
@jzy3d
Copy link
Owner Author

jzy3d commented May 31, 2022

#278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant