The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Image plot distorts evenly spaced data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

GinnyS

7 Posts

Posted - 07/16/2021 :  11:51:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

AKazak

Russia
1205 Posts

Posted - 07/16/2021 :  12:52:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

GinnyS

7 Posts

Posted - 07/16/2021 :  1:16:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/16/2021 :  1:45:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

GinnyS

7 Posts

Posted - 07/16/2021 :  5:22:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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??
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/19/2021 :  2:09:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you share the opju file?

Best,
Snow
Go to Top of Page

GinnyS

7 Posts

Posted - 07/19/2021 :  3:44:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/19/2021 :  5:51:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

GinnyS

7 Posts

Posted - 07/20/2021 :  11:22:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/20/2021 :  3:11:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/21/2021 :  4:46:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

GinnyS

7 Posts

Posted - 07/22/2021 :  04:54:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

minimax

354 Posts

Posted - 07/22/2021 :  06:51:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000