T O P I C R E V I E W |
GinnyS |
Posted - 07/16/2021 : 11:51:06 AM Origin Ver. and Service Release (Select Help-->About Origin): 2020b Operating System: Windows 10
Hi!
I have an evenly spaced matrix of data but when I plot it as an Image plot the data does not appear evenly spaced any more.

How can I make my image plot keep the even spacing of my data? Thanks! |
12 L A T E S T R E P L I E S (Newest First) |
minimax |
Posted - 07/22/2021 : 06:51:10 AM Hi Ginny,
You may try setting system variable @IPER=0 to workaround the problem.
https://www.originlab.com/doc/Origin-Help/System-Variable-Dialog
Max OriginLab Technical Support |
GinnyS |
Posted - 07/22/2021 : 04:54:37 AM Hello,
I would like to make figures to use in a document, for example here: https://my.originlab.com/ftp/forum_and_kbase/Images/Example%20document.odt (the image in that document is graph C in this project, https://my.originlab.com/ftp/forum_and_kbase/Images/UnevenSpacingV2.opju , I exported the image as a PDF and the uneven spacing is still apparent.)
As I want the text in my figure to match the text in the document (here Times New Roman size 11), I make my graph the same size as I would use in the document (15cm wide) and the font size will match. This is why my layers are sometimes small. Making the layers larger and fixing the font size would not help as when I scale the image I export down for my document, the text will be too small. This why I have been doing a workaround of doubling the size of everything including the layer and font sizes. Is this my only option?
Thanks, Ginny
|
cpyang |
Posted - 07/21/2021 : 4:46:46 PM We will investigate, and also will provide a tool for you to make your graph page with higher resolution. For now, you can use the following script to increase the resolution by a factor of 10
v3=layer.unit;//save it
layer.unit=1;
page.width*=10;
page.height*=10;
page.resX*=10;
page.resY*=10;
layer.unit=v3;//restore
page.zoom=0;//viwe fullpage
CP
|
snowli |
Posted - 07/20/2021 : 3:11:04 PM Hi Ginny,
I jiraed the issue in ORG-24000 for our developer to fix. I don't fully understand why you need the layer to be very small.If you want the font size not rescale with layer size. You can choose Graph: Fix Scale Factors... and set it to 1. So no matter how big or small the layer is, the font size is fixed.
Thanks, Snow
|
GinnyS |
Posted - 07/20/2021 : 11:22:13 AM Hi,
The layer is small so I can use size 12 font in my graph and it will match the font size in the document I am producing a figure for. The figure will fit into a 15x6cm space on my page, so the layer will be small - especially if I want to a 2x3 grid of 6 image plots in the figure.
If I make the layer size larger the uneven spacing becomes less apparent but is still there. It is just worse when decreasing the size. As a workaround I can double the size of everything (e.g. font, layer size, page size) but I have already made some graphs and would have to redo a lot of formatting.
Is there a way I can have evenly spaced data with a small layer size?
Thanks, Ginny |
snowli |
Posted - 07/19/2021 : 5:51:18 PM Hi Ginny,
Any reason the layer size of the graph window very small? E.g. choose Format: Layer... Go to Size tab. The width and height of the layer is only 1.998cm x 0.9991 cm. Also the page size is using inch as unit. 5.905 in x 2.362 in.
If i make the layer size bigger, no uneven issue.
Maybe you customized image plot graph template and saved it with this size so it's causing the issue? No issue with our built-in image plot template.
Thanks, Snow |
GinnyS |
Posted - 07/19/2021 : 3:44:13 PM Hi,
Here is an opju file with the problem I have described:
https://my.originlab.com/ftp/forum_and_kbase/Images/Uneven%20Spacing.opju
Thanks! |
snowli |
Posted - 07/19/2021 : 2:09:45 PM Could you share the opju file?
Best, Snow |
GinnyS |
Posted - 07/16/2021 : 5:22:59 PM Hi Snow, thanks for the response!
I tried what you suggested but my stripes are still uneven, for instance x=12 is thinner than x=13:

This gets worse when I reduce the size of the layer:

Any suggestions?? |
snowli |
Posted - 07/16/2021 : 1:45:25 PM Hi Ginny,
Could you check matrix data value and adjust color levels. E.g. if i have matrix with 32 columns and value is from 1-32. If i set color to be from 1 to 32 and increment by 1, it plots from black to white gray scale fine.

Thanks, Snow |
GinnyS |
Posted - 07/16/2021 : 1:16:31 PM Hey Andrey, thanks for the response!
I have 32 stripes here and 256 colour levels, so I don't think this is the issue here. I should have 32 vertical stripes, each with a width of 1.
Any other ideas? |
AKazak |
Posted - 07/16/2021 : 12:52:06 PM quote: Originally posted by GinnyS
Origin Ver. and Service Release (Select Help-->About Origin): 2020b Operating System: Windows 10
Hi!
I have an evenly spaced matrix of data but when I plot it as an Image plot the data does not appear evenly spaced any more.

How can I make my image plot keep the even spacing of my data? Thanks!
Hey, Ginny!
It seems that you set a small number of color levels. Try to increase number of levels in the grey scale palette.
--- Andrey |