-
Notifications
You must be signed in to change notification settings - Fork 26
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
X cut doesn't match what's on screen #103
Comments
@kmun the xCut (and yCut/pCut) logic has always been hardcoded to assume one raster layer. Line 3546 in 480cec3
Do you have a specific use-case for this or was it just something you found while playing around? I think the correct behavior is that each raster layer turns into it's own line (with a different color per raster layer). That way if you had overlapping rasters you could make cuts and see each layer. |
sorry, I should have explained better. In my case I don't have a lot of raster "lines"; as an example, in a plot there may only be 6 raster lines so each line is about 1 inch wide on my screen. If I'm at the top of the 1 inch wide line it shows the x cut properly, if I'm anywhere after 50% into the 1 inch line it shows the x cut for the NEXT raster line. I do use this a lot. Most of my plots contain less than 20 lines and since the window is about 10 inches tall on my display, that's a 1/2 inch wide line. Most of my users will put the curser in vertical and horizontal center of the line which means they will often be viewing the next line when doing an X cut. I've included a REALLY BAD powerpoint diagram trying to show the issue. I can't upload a real plot for security reasons. Sorry. BTW, thanks for the follow up. |
@kmun thanks for the picture and description. I have identified the source
of the issue and will fix it soon.
…On Tue, May 18, 2021 at 8:08 AM kmun ***@***.***> wrote:
sorry, I should have explained better. In my case I don't have a lot of
raster "lines"; as an example, in a plot there may only be 6 raster lines
so each line is about 1 inch wide on my screen. If I'm at the top of the 1
inch wide line it shows the x cut properly, if I'm anywhere after 50% into
the 1 inch line it shows the x cut for the NEXT raster line. I do use this
a lot. Most of my plots contain less than 20 lines and since the window is
about 10 inches tall on my display, that's a 1/2 inch wide line. Most of my
users will put the curser in vertical and horizontal center of the line
which means they will often be viewing the next line when doing an X cut.
I've included a REALLY BAD powerpoint diagram trying to show the issue. I
can't upload a real plot for security reasons. Sorry. BTW, thanks for the
follow up.
[image: Example of X-Cut issue]
<https://user-images.githubusercontent.com/45660362/118647876-d7a4e580-b7af-11eb-9945-d76e1b422158.jpg>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYEIRWANL3YNP3T4NHHSTTOJKCTANCNFSM44C4RLDA>
.
|
@kmun I don't know what version of SigPlot you are running, but I have fixed the issue here: If you are able to run the The good news is, the fix is very easy, so you should be able to port it into whatever version you are running by altering these lines: Line 3540 in 480cec3
Line 3684 in 480cec3
|
Describe the bug
Performing an X-Cut in a raster appears to go to the next trace instead of the current one.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would think the X-Cut should match the trace under the cursor when you press the X key, it appears to round up so at 0.5 Y index it prints trace 1 and at 1.5 Y index it prints trace 2.
jsFiddle
If possible, demonstrate the issue by forking this jsFiddle and providing a link to your jsFiddle in the bug report.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: