取消
显示结果 
搜索替代 
您的意思是: 

Plot offset in contour line plot

Hello,

 

I have a contour line plot like the the following:

 

plot1.png

 

The circle's center is at x = 0 and y = 0.

Now I'd like to move the plot with 2 offsets: x and y.

 

The axis scaling may not change.

But the plot circle's center should be moved a bit, so that it's for example at x = 0,25 and y = 0,4.

 

How can I do that, so that the plot will be recalculated?

I attached an example VI if you like to play around with it. 眨眼表情

It's based on the VI "Contour Line Plot" in the NI Example Finder.

 

The values of the 2D arrays are given (measured). And after measuring these values the offset calculation should start based on these values.

 

Regards

Matthias

 

0 项奖励
1 条消息(共 9 条)
5,599 次查看

Please discard my previous post, I missed that you don't want x/y scale affected...  First  turn off Autoscale on both X & Y (right click no scale, you'll see options, I also turned off Loose fit but not sure if that's needed even though data are fractional) and then add offsets to data just before they enter Contour Line.

 

-BTC
 

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 项奖励
2 条消息(共 9 条)
5,579 次查看

Hello,

 

as I wrote, the axis scale must be the same like before the offset calculation.

So the plot in this example here must have the x axis scaling from -1 to +1 and the y axis, too.

 

And changing the scale would not recalculate the plot:

If the x axis goes from -0,5 to +1,5 there will be empty space between x = +1,0 and x = +1,5.

 

Regards

0 项奖励
3 条消息(共 9 条)
5,569 次查看

Saw that too late, I updated the VI - check it out.  It doesn't do everything but should lead you in the right direction (It does leave empty space). Offsets would have to be applied to the original array constants before they go into contour line vi. Hmm... this needs more math.

 

-BTC

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 项奖励
4 条消息(共 9 条)
5,567 次查看

Hello,

 

thank you. Can you save it as a LV2013 VI please?

 

Regards

0 项奖励
5 条消息(共 9 条)
5,548 次查看

Hello,

 

or can anyone please convert the LV 2014 VI posted by BTC_Admin to LabVIEW 2013 or lower?

 

Regards

Matthias

0 项奖励
6 条消息(共 9 条)
5,496 次查看

Last try: Is anybody here who has LabVIEW 2014 installed and can convert the VI in post #2 to LabVIEW 2013 or an older version?

 

Or is anybody here who can help me finding a solution?

 

Regards

0 项奖励
7 条消息(共 9 条)
5,454 次查看
0 项奖励
8 条消息(共 9 条)
5,444 次查看

Thank you very much for converting it!

 

Now I see, that's not really the solution I need. I think there must be a recalculation with the "Contour Line.vi". But I dont't know how to do it.

Maybe with a kind of interpolation before calling the "Contour Line.vi".

0 项奖励
9 条消息(共 9 条)
5,434 次查看