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

Polar chart (in progress) #106

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open

Conversation

Qwerty71
Copy link
Contributor

.addSeries and .addFunction work, only issue is when I tried to implement the draw_empty_circle function in the renderers.

@Qwerty71
Copy link
Contributor Author

Hey, could anyone help me with this issue? How do I clip the graph so that any extraneous lines/circles do not appear? An example of this issue can be found here. Help would be much appreciated!

@WilliamHYZhang
Copy link
Contributor

@Qwerty71 you could include a check to only graph the circles that fall INSIDE the graph perhaps.

@WilliamHYZhang
Copy link
Contributor

Clipping the circles will take significantly more work: you'll have to split them up and graph individual arcs, or maybe include an overlay outside the graph which isn't ideal.

@KarthikRIyer
Copy link
Owner

@Qwerty71 could you check the allow edits from maintainer option in your PR. I'll fix the build fail by adding the code for QuartzRenderer.
Also I agree with @WilliamHYZhang. Instead of clipping the circles just calculate the maximum radius of the circle that can come in your figure.

@Qwerty71
Copy link
Contributor Author

Qwerty71 commented Jan 24, 2020 via email

@KarthikRIyer
Copy link
Owner

KarthikRIyer commented Jan 24, 2020

Actually you'd have to re-implement the plot instead of reusing Line Graph code. Try taking a look at the line graph code to understand the flow. Let me know if you have any doubts. Then we can move on to implementing this plot from scratch.

Line graph takes in width and height. You can instead have just one parameter for Polar Chart.

@KarthikRIyer
Copy link
Owner

Also we do not want the rectangle border. The border should be circular. Take a look at how matplotlib polar plot results look like. https://matplotlib.org/gallery/misc/transoffset.html#sphx-glr-gallery-misc-transoffset-py

@Qwerty71
Copy link
Contributor Author

Got it. I can implement the arc function, but if we want to make the borders circular then there is no need. In fact, if we make the borders circular, then there is no need for a background layout at all - all I need to do is draw the circles. Would you like me to include the degree measure in the plot?

@KarthikRIyer
Copy link
Owner

Yes, it'd be nice to include the degree measure. Try to replicate the example I sent above, as much as possible.

@Qwerty71
Copy link
Contributor Author

Sorry, I've been rather busy lately. I will finish this task and implement Polar Plot when I can. So far, I need to
a) make the grids circles (and the border, as per matplotlib style)
b) add degree measures
c) (if necessary - it would be convenient but is no longer needed) create function to generate arcs.

@KarthikRIyer
Copy link
Owner

No worries @Qwerty71. This isn't an urgent task. Take your time. :D

@WilliamHYZhang
Copy link
Contributor

Nice to see progress on this! Keep it up 👍

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 this pull request may close these issues.

None yet

3 participants