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

Graph/Chart scale options

已解决!
转到解答

Okay now how do I make the scale on the left Y-axis (Volts) and the X-Axis (Time) look like the right Y-Axis (Amps) scale?

 

That is so the numbers do not overlap the chart area or each other at the corners? 

 

I really don't know how I managed to get the right side looking perfect but I have tried resizing everything like the chart area but it just resizes the whole thing and I can't get the other two sides to look even close to the Amps scale.

 

graphCapture.PNG 

========================
=== Engineer Ambiguously ===
========================
0 项奖励
1 条消息(共 5 条)
2,704 次查看

I attached a VI with the chart in question

========================
=== Engineer Ambiguously ===
========================
0 项奖励
2 条消息(共 5 条)
2,691 次查看

Did you customize the control? If I remake that control with a regular chart, it autosizes and the numbers look fine. I can't even figure out a way to move the axis label location around unless I do Customize Control.

 

Other than using Customize Control, the YScale.Position property will move the tickmarks around. (Be sure to set Active Y Scale to the correct axis first).

 

Can you either post your chart, or just delete it and remake it from scratch? It looks like a Custom Control that got bonked a little.

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

Ah, I see you posted your code. Play around with YScale.Position and YScale.Marker.Left. Personally I'd just recreate this from a basic Silver chart, that'll get the auto-snapping to work again, but this seemed to fix it.

 

Set YScale.Marker.Justify to Right, then use YScale.Marker.Position.Left to scoot it over to the side a bit.

 

You can do similar with the X scale to get it lower.

0 项奖励
4 条消息(共 5 条)
2,685 次查看
解答
接受人 RTSLVU

Actually I swapped sides then swapped them back and it seemed to fix the overlapping issue and resized the border...

 

I am not sure how I messed up the chart area in the first place, I did not make any custom modifications to it.

 

But this has been a "cosmetic bug" in my program for quite some time.

 

chrtCapture.PNG

========================
=== Engineer Ambiguously ===
========================
0 项奖励
5 条消息(共 5 条)
2,682 次查看