DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple 2D Plots and cursor legend position

Hello

 

I have a problem with displaying the cursors values of multiple 2D charts in the legend of the CurveChart2D area.
I'd like to achieve a similar layout of cursors values as in these pictures. 

 

 

Multisim.PNG

 

 

 

 

 

 

 

 

 

SeframViewer.PNG

 

As you can see, the cursor legend is the horizontal aligned table in comparison with Diadem vertical table as this picture below shows. 

Result.PNG

Diadem cursor legend is located at the bottom right and I have not been able to move it to the top. It's not very user friendly if you need to show more cursor values for many plots.
I tried alternative way by creating two more 2DCurve areas and hiding plot area of them, leaving only legend visible - see the picture above..
This solution has some other problems and some advantages, in my opinion .

  • it depends on scripting and allows user to make a mess if manual adding and removing plots is not denied somehow. I don´t have problem with scripting though.
  • I didn´t find a way how to lock height of areas or legend width , because sometimes it changes if I maximize window of Diadem.
  • The big advantage is in good configurability. You can add and delete any other properties. I also tried to make user dialog to show cursor values in table or extended table control. This works, but every change and each additional feature must be done by script.   

 

Are there any other ways to resolve this?

 

Thank you

 

John Horak

Sorry for my English, I'm not native.

0 Kudos
Message 1 of 3
(194 Views)

I think the best - but not the easiest - way to get what you want is build your own legend. You can add an area of Dialog box type to your view layout. There you can integrate a dialog box that shows current cursor values using the View.Sheets(x).Cursor object. The dialog box has to be built with the "Create user dialog box" function in module SCRIPT.

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 2 of 3
(129 Views)

Hello 

 

Thank you for your reply.

 

I've actually tried something like this before.
It works, but you lose the functionality that the default legend offers.

 

Eventually I reverted to the approach as in the picture, i.e. another auxiliary area with the same channels.

Of course there are other problems. For example, I would need more event categories for the View object, the CurveChart2D object does not contain an exhaustive set of properties, etc. But that's for another topic.

 

Take my previous question more as a suggestion for the future - the possibility to move the legend below or above the main chart.

 

 

John 

0 Kudos
Message 3 of 3
(119 Views)