Comments (9)
Use Chart2d with Chart2dComponentFactory.
2016-06-08 11:09 GMT+02:00 Hugo [email protected]:
Dear jzy3D team,
I have observed the following issue: when the view is in "2D mode" (both
using ViewPositionMode.FREE or ViewPositionMode.TOP), axes layout is wrong
since labels are overlapped within axes and chart. You can see this effect
in the following image:
[image: 2d-wrong-axes]
https://cloud.githubusercontent.com/assets/3440230/15888858/f3b735ce-2d68-11e6-942e-0492d21349ee.pngHowever, as you can see in the following two images, when the view is in
"3D mode" (even when it is very close to the "2D/Top" view), labels are
correctly displayed without being overlapped.[image: 3d-right-axes-2]
https://cloud.githubusercontent.com/assets/3440230/15888859/f3ba17d0-2d68-11e6-95e0-417b84b3c4ee.png
[image: 3d-right-axes]
https://cloud.githubusercontent.com/assets/3440230/15888860/f3bf19f6-2d68-11e6-817a-f81356fd64e6.pngIs there any way to fix it? Can you consider fixing this issue in jzy3d?
Thank you very much for your support.
Regards.
β
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#62, or mute the thread
https://github.com/notifications/unsubscribe/ABV7qbT8HaqL5kb0BnSZ3bn2B88FnmNIks5qJobVgaJpZM4Iwv2d
.
from jzy3d-api.
Dear Martin,
thank you very much. I have tried it and it looks much better using Chart2d with Chart2dComponentFactory.
It would look perfect if the X axis tick lines were not overlapping X axis labels, but it looks much better now.
Thank you very much for your support.
Regards.
from jzy3d-api.
Dear Martin,
I have detected an issue with Chart2d
: it does not respect the image proportions even when setSquared(false)
is used.
Here is the result obtained using AWTChartComponentFactory
and Chart
:
And here is the wrong result obtained using Chart2dComponentFactory
and Chart2d
:
In both cases I invoke chart.getView().setSquared(false)
after creating the chart.
Is there a way to fix this issue?
Thank you very much.
Regards.
from jzy3d-api.
I have just seen that class View2d
(the one used by Chart2d
) overrides computeSceneScaling()
so that it always return squarify()
. I think that this must be the reason why setSquared(false)
does not have effect on Chart2d
.
Do you know any way of having a squared Chart2d
?
Thank you very much.
from jzy3d-api.
I confirm it is a non desired behavior.
You might try removing the override, or override the override with
overriden impl or wait for a fix but I can t promise any deadline
Le lundi 13 juin 2016, Hugo [email protected] a Γ©crit :
I have just seen that class View2d (the one used by Chart2d) overrides
computeSceneScaling() so that it always return squarify(). I think that
this must be the reason why setSquared(false) does not have effect on
Chart2d.Do you know any way of having a squared Chart2d?
Thank you very much.
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABV7qZCldQt3PgrmH61sGSMIwznBKukQks5qLRqtgaJpZM4Iwv2d
.
from jzy3d-api.
Thank you very much for your suggestion. Indeed, removing the override is precisely what I tried. This way, the setSquared(false)
works and the image is rendered respecting its real dimensions. Finally, to obtain a slightly better layout of the axes I have overriden the drawAxisTicks
and layoutHorizontal
in AxeBox2d
class.
It would be nice if you can fix this in future versions.
Best regards,
Hugo.
from jzy3d-api.
Could you kindly perform a pull request so that your improvements will be
merge in future version?
Thank you!
2016-06-14 18:06 GMT+02:00 Hugo [email protected]:
Thank you very much for your suggestion. Indeed, removing the override is
precisely what I tried. This way, the setSquared(false) works and the
image is rendered respecting its real dimensions. Finally, to obtain a
slightly better layout of the axes I have overriden the drawAxisTicks and
layoutHorizontal in AxeBox2d class.It would be nice if you can fix this in future versions.
Best regards,
Hugo.
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#62 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ABV7qf4PhNt58V98VJK6DenOJ3WTEF8uks5qLtGcgaJpZM4Iwv2d
.
from jzy3d-api.
I think that our solution is a path that works for our application but further investigation is needed in order to introduce the changes in the official releases. I will investigate a better way to fix this issues and if I found it, I will perform the pull request.
Thank you for your support too.
from jzy3d-api.
Version 2.1.0 now provides much better 2D charts! See the tutorial chart2d package.
from jzy3d-api.
Related Issues (20)
- Contact HOT 1
- jGL matrix inversion get full of NaN values on XZ or YZ projections
- 2D charts should support reverse axis directions
- 2D charts improvements
- Rendering hangs on macOS (crashes on Ubuntu) after few thousands of calls to render() HOT 2
- Let PERSPECTIVE projections work without needing to manually set View.factorViewPointDistance to 3.
- Constant 2D functions are not rendered
- Swing charts with a translucent surface let the previous view content appear under the surface
- Enabling 2D views in Jzy3D App prevent from enabling the 3D view later
- Can't run demos on M1 HOT 1
- Add LWJGL as alternative OpenGL binding to EmulGL and JOGL
- Allow hiding dashed lines of the axis cube from the axis layout
- Allow rendering dashed lines with smoothLine setting on M1 HOT 1
- Add triangle tesselator
- Screenshots of AWT Canvas on Win10 are not scaled on HiDPI screens
- Tooltips and post renderers aren't scaled properly when {AWT, Win10, Java9+, HiDPI}
- 2D overlay : EmulGL and native should have the same code when dealing with HiDPI HOT 1
- Volume Visualization issue : can't bind texture HOT 1
- Test and bump to the new JOGL 2.4.0
- Fatal Error Log using DrawableVBO HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jzy3d-api.