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
 How to hide the part of a shape outside a plot?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ssavarmand

USA
Posts

Posted - 12/17/2014 :  1:02:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 9.1.0
Operating System: Win-7

Hi,

I was wondering if there is a way to show only the part of a shape inside a plot and limited to the plot axis. In the attached graph, for example, I have plotted a circle on the graph, but I would like only the part inside the graph to show up. How the part outside of the graph can be hidden?

Here I have used the circle tool to draw the circle. Do I need to treat this problem as plotting a circle with the circle equation, such as (x-x0)^2 + (y-y0)^2 = R^2? What is the simplest way for circle?

BR,
Saeid

snowli

USA
1390 Posts

Posted - 12/17/2014 :  4:11:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

I will check if we have better way to support this.

Right now, one way is choose File: New: Function Plot: 2D Parametric Function Plot.

Make sure "Add to Active Graph" is selected at the bottom.

Use parameter t, 100 points, from 0 to 2*pi

Set X(t) to be r*sin(t)+x0
Set Y(t) to be r*cos(t)+y0

it will add a parameter function plot which is a circle.
--> Corresponding data is created in worksheet.

BTW, to make sure circle show as circle instead of oval, double click in graph to open Plot Details dialog.
Go to Layer node on left panel.
Go to Side/Speed tab on the right.
Check Link Axis Length to Scale (isometric).

You can select the line plot and change line style, thickness on Style toolbar.

Thanks, Snow
OriginLab Corp.

Edited by - snowli on 12/18/2014 09:15:56 AM
Go to Top of Page

ssavarmand

USA
Posts

Posted - 12/18/2014 :  07:56:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Snow,
That was awesome! Really appreciate it! Made my day! Have a great day!
BR,
Saeid
Go to Top of Page

ssavarmand

USA
Posts

Posted - 10/12/2023 :  12:00:35 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
Recently I tried 3D Parametric Function Plot to plot shperes. The spheres cover negative values of x, y, or z.
Is it possible to hide (not show) the part of the spheres that are on the negative sides?
Is it possible to somehow define constraints that can be used to hide part of a 3D plot?
Thanks.
Go to Top of Page

snowli

USA
1390 Posts

Posted - 10/12/2023 :  12:26:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, you can double click plot and go to Misc. tab to turn on and set clipping in 3D
see this FAQ https://www.originlab.com/doc/Quick-Help/3D-Clipping

The following used By Percentage. But u can choose By Value to set the from and to values


Thanks, Snow
Go to Top of Page

ssavarmand

USA
Posts

Posted - 10/12/2023 :  3:55:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot, Snow.
Right on. Works perfectly.
Saeid
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