-
Notifications
You must be signed in to change notification settings - Fork 39
Add Bracket Annotation #108
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
Add Bracket Annotation #108
Conversation
|
I like this. |
|
Hm, is the difference between the SVG and AGG because of the annotation or a bug on the renderer? I don't think I changed the renderer code in this PR. For the coordinate space, the way that we will resolve |
|
From @karwa:
Maybe we can continue the discussion either here or in an issue. |
|
@WilliamHYZhang I think the issue might be with the renderer. Also, sorry I wasn't very clear. I meant the coordinate spaces you've implemented till now. Just for the annotation. Not the plot data. |
|
Alright, no problem. Which coordinate space would you like me to use in the test? |
|
axesPoints |
…to bracket_annotation
|
@KarthikRIyer implemented coordinate input support. For some reason, the tests are failing on my local device for However, with GitHub Actions it passes. Weird! |
|
ping @KarthikRIyer |
|
@WilliamHYZhang this is happening because the |
|
This check just runs the test on your branch. Not the merged code. So it passes. |
|
@WilliamHYZhang any updates? We're thinking of marking a stable release. It would be nice to have all your work on annotations that you did during GCI, included in the release. |
|
Oh whoops, sorry about that. I'll pull against master again and fix it up. EDIT: Actually, is the pull needed? I think it should work since the files changed are only the bracket annotation files. EDIT: Never mind, see the error now. |
…to bracket_annotation
|
@KarthikRIyer what is going on with the linechart test case? |
|
@KarthikRIyer, could you inspect those two test cases? They are producing different outputs on my system then the reference, and overwriting those files still are resulting in error on the build checks. |
|
I'll take a look today. I've been out of station the whole weekend. |
|
@WilliamHYZhang I found the problem but am not sure of the reason. The failing test has this LOC --> For some reason, for negative x values the Try using apple's swift release. This should fix your issue. @karwa any idea what's wrong with the S4TF build? |
|
Sorry for the late reply. In regards to the Swift release, I don't have an Apple system but I'm using the Ubuntu 18.04 release. |
|
@WilliamHYZhang by Apple's release I mean the Swift binaries they provide for Ubuntu. |
|
Any updates on this @WilliamHYZhang ? So a better way for us to deal with this issue is : Could you make this change in this PR @WilliamHYZhang? |
|
Sorry for the delay, having a bit of trouble with the new Swift
installation. So the behavior is normal? Should there be no errors with the
new test. Maybe I will create a new PR with the updated test. Please let me
know what you think.
…On Mon, Mar 9, 2020, 9:49 AM Karthik Ramesh Iyer ***@***.***> wrote:
Any updates on this @WilliamHYZhang <https://github.com/WilliamHYZhang> ?
I posted the issue with the pow function on S4TF's Jira. Dan Zheng said
that this was the expected behavior according to C standard library. link
to issue on JIRA <https://bugs.swift.org/browse/TF-1157>
So a better way for us to deal with this issue is :
lineGraph.addFunction({ pow($0, Int(2)) }, minX: -5, maxX: 5, clampY:
clamp, label: "2", color: .lightBlue)
Could you make this change in this PR @WilliamHYZhang
<https://github.com/WilliamHYZhang>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#108?email_source=notifications&email_token=AJQVBJEM5VKCFQFSD7RSMK3RGTXUZA5CNFSM4KK2OOP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOHGKMY#issuecomment-596534579>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJQVBJBLHJQ4NNYENUPDOYLRGTXUZANCNFSM4KK2OOPQ>
.
|
|
No need to use the new swift. Just update the test as I've mentioned above and update the reference images. This should fix the errors. |
|
@KarthikRIyer thanks for the suggestion, however casting as I propose just changing the |
|
@WilliamHYZhang there's a reason for the negative clamps. Notice the name of the test is cross both axes. |
|
Ah I see, is there any other way to address this? |
|
Let me see once I get on my Linux system. |
|
@WilliamHYZhang I've fixed this for now. It doesn't look nice, but works for now. You can take a look at the commit. It seems there was no Merging. Thanks a lot for your contribution! |
|
Sounds good! |
Glad I had time to squeeze this in before GCI ends in a couple minutes 😂
Simple addition of a new bracket annotation with updated tests to demonstrate. Allows for start, end, color, etc. as well as an optional anchorable annotation as well.
Please enjoy!
William