I would like to plot X v Y, and at the same time, have a transparent shaded area (so the points can still be seen on top of it) where X < n and Y < n.
I have managed to create the area that I want using the “connect” command, but can’t work out how to fill in this area. Is there a better way that I should be doing this? thanks
PS if possible, I would also like to be able to label only the points that fall outside of this area (i.e. X >n or Y > n).1 month, 2 weeks ago dgteamModerator
Could you send a screenshot? Think it would help know what you are seeing. Wondering if this is the ellipsoid shape?
In terms of having the transparent area – just want to make sure you know that the commands are drawn in layers. So if you if you move the shape with the fill to the top then the points will be beneath.
Here is a demo: https://youtu.be/RgXSnXiGuQY
Hopefully this gives an idea – I want to distinguish the area within the dotted lines from the rest. It’s not essential to be able to fill it, I guess – just thought it might make it look a bit better. It would be useful to be able to label the points outside, though! thanks1 month, 2 weeks ago dgteamModerator
Thanks for uploading! Helps to see that.
We just uploaded a file that includes these two graphs. Thought you might be interested in also trying out an oval, in addition to a rectangle. (In DataGraph, go to File > On-line examples to download. It will be at the top of the list.)
The highlighted area is drawn with a Region command.
The file is annotated so hopefully you can follow what we did.
Please take a look and let us know if this helps and any other questions.
Or you can also do it this way, using sliders. In this case it is possible to adjust the plot interactively
And here you can see how it’s done
thanks, that’s v helpful – the region command is definitely useful. Looks good to me!
I’m going to leave it as a rectangular rather than elliptical region this time, but good to know that the ellipse is an option. And it occurs to me that I can just create a new labels column, with only the entries that fall outside those bounds, and label the points that way.
thanks v much
You must be logged in to reply to this topic.