T O P I C R E V I E W |
caoutchouc |
Posted - 11/14/2024 : 5:46:34 PM I have an XY grid of points forming a square ring, and each of those points is assigned a Z value. This means that the inside of this square is completely devoid of data. Origin insists on creating fake data to put in there. Problem only appeared when I increased the number of points in that square ring to roughly above 4000. There was some fake data before (in the projection onto XY, which I am also using) but that was solved with smoothing. This time smoothing can't help. It's not an issue with the code I'm using. If I sort the worksheet and simply scroll down to the areas which have fake data on the graph, there aren't any entries in the XY grid corresponding to them.
If possible I'd like to avoid having to do additional pre-processing, like by filling in the middle and assigning 0 everywhere and cutting it out with the colormap, as this would bloat the filesize massively. Surely there's a way to fix this?
Here's the square ring I'm talking about.
The graph -- random spikes in the middle. On the projection I'm additionally showing the same grid using the same worksheet data, which also shows there shouldnt be any points in the middle.
View from above for completeness
I'm at a loss, I tried searching for a solution but I couldn't come up with any query to get any answers.
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2024 (64-bit) SR1 10.1.0.178 (Student Version) Operating System: Windows 10
|
7 L A T E S T R E P L I E S (Newest First) |
snowli |
Posted - 11/18/2024 : 3:13:37 PM Hello, I got explanation from developer: Setting color <0 to be none just hides the display. The data in that range is still in the graph. So when you check Shift, it will shift the whole surface, including those hidden region. Try check the shift in the opju i sent you. Then zoom out the page to be 25% or so you can see the surface plot is way up in gray area above the white page.
Or in the graph i sent, change < 0's color to be black. Then check Shift to see the change.
Thanks, Snow
quote: Originally posted by caoutchouc
Thank you so much! This is exactly what I needed. I didn't think shift in Z would cause this problem at all.
|
snowli |
Posted - 11/16/2024 : 5:18:57 PM That's great.
And thank you for giving permission to use it in our graph gallary.
We have example there of drawing region without data as a hole but yours with square ring looks very intriguing.
If you have other graphs to share in the future, please feel free to post.
Thanks, Snow
|
caoutchouc |
Posted - 11/15/2024 : 10:28:37 PM Thank you so much! This is exactly what I needed. I didn't think shift in Z would cause this problem at all. Thank you, this is the method I'll be using for my whole dissertation.
I'm glad you think it's interesting! There's quite a few interesting graphs like this that I am working on. I give my permission, of course, though I think there's better ones I could share later on. Perhaps once I finish my dissertation I could share more potentially interesting graphs.
If more problems pop up somehow, I'll be asking again. Thank you! |
snowli |
Posted - 11/15/2024 : 3:30:58 PM Hello, I modified the "from matrix..." graph in the attached opju. Could you check if the attached graph is what you want?
https://my.originlab.com/ftp/forum_and_kbase/Images/POLYGON-SQUARE-2nm-forum_mod.opju
Basically here is what I did: 1. double click the plot to open Plot Details. 2. With 1st plot selected on the left, go to Colormap/Contours tab, set Level to be from 0 so all z values below it will plot as none. U can see <0 fill color is none. Both plots are from same data, so changing one's colormap will affect the other. 3. Then still with 1st plot selected, go to Surface tab, uncheck the "Shift in Z..." checkbox so it will not be shifted. Stay where the values are. Though the value after it is 0, somehow checking/unchecking it shows different effect. 4. Click OK to close the dialog.
5. Double click Z axis to open Axis dialog. 6. On Scale tab, change From and To values to -0.5 to 1.5, Major increment to 0.5.
You may also want to go to Preferences: 3D OpenGL Settings... dialog, make sure Enable Transparency is enabled since you set your surface to have transparency.
BTW, this is a very interesting graph, would you allow us to use your data graph on our Graph Gallary page. https://www.originlab.com/www/products/GraphGallery.aspx
Thanks, Snow |
caoutchouc |
Posted - 11/14/2024 : 11:05:25 PM Thank you for the reply!
First of all, yes, disabling smoothing deleted the spiky fake data (didn't think of it!) but it was helping to solve the issue of flat fake data filling in the square. It was close to 0, but not close enough to be cut by setting lower parts of the colormap coloring to "none", as it would affect the real data too much. This will be visible in graph titled "state4". The same graph is the one I was presenting in the beginning (but with smoothing on).
Second, converting to matrix is sort of helpful! Technically as long as the filled in center is <= 0 then I can make it not show up with the colormap tab under plot properties. Out of the options for gridding methods I had the best luck with Renka Cline (which creates a "well" in the center) and Kringing Correlation. However then I cannot set the vertical position of the graph correctly. For some reason the bottom of the graph doesn't seem to obey the Z axis, so the real data from the square boundary is shifted up only on the graph, such that the bottom of the "well" can sit on the XY plane (Z=0). I haven't been able to resolve this, I'm still very new to Origin.
Here's the .opju file. The data used is taken from "WF_g.otp" workbook, "normalized" sheet in the "states" folder. The first two columns are XY grid, the numbering in the names of columns refers to the number of state (corresponding to the graph names). "state4" is the specific graph I showed in the beginning, and "from-matrix-normalized..." is the graph created from the matrix. Hopefully this is sufficient information, but I'll help out if necessary. https://my.originlab.com/ftp/forum_and_kbase/Images/POLYGON-SQUARE-2nm-forum.opju |
snowli |
Posted - 11/14/2024 : 6:44:23 PM Could you share your project file so we can look better.
Since you mentioned there was smoothing options, it sounds like your data is organized as X, Y, Z columns and you plot from it. Could you turn off smoothing options in Plot Details to see if no data will be plotted in region with no data. Maybe you can can choose the Z column and choose Worksheet: Convert to Matrix: XYZ Gridding to reorganize data into matrix like and then plot. But it will be hard for us to check without your project.
If you don't want to share the opju file here, you can submit ticket https://originlab.com/newticket
Thanks, Snow |
caoutchouc |
Posted - 11/14/2024 : 5:49:39 PM Occured to me I might want to show the mesh, too. It looks even more ridiculous. There's not a single negative value in the data.
|
|
|