LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom tick names on xy graph?

Is it possible to get custom tick names on an
xy graph? By "ticknames" I mean the text that
goes with each marker indicating its value.`

I have snooped around the properties
quite a bit, but it doesn't seem possible.

In fact, it almost seems like a "not fully
implemented" feature, since one can use a property
node to get to Xrange/markers/text, but writing to "text"
does not do anything (and there seems to be no way to select
a particular marker).

I want my custom tick names to be tied to the marker, since
I will programmatically change the tick names based on the
data, and the will have to scale with the size of the graph
(i.e. if a user maximizes window), and it will also change with
different data begin sent to the graph.

I could (i
suppose) hide the tick names, and drop strings at
appropriate places, but that will take a bit of coding. Accessing
the ticknames would be much easier and cleaner.

TIA,
rgs
0 Kudos
Message 1 of 6
(5,060 Views)
Robert Stockwell wrote:

>
> I want my custom tick names to be tied to the marker, since
> I will programmatically change the tick names based on the
> data, and the will have to scale with the size of the graph
> (i.e. if a user maximizes window), and it will also change with
> different data begin sent to the graph.
>
> I could (i suppose) hide the tick names, and drop strings at
> appropriate places, but that will take a bit of coding. Accessing
> the ticknames would be much easier and cleaner.
>
>

Hi,

Have you tried the Marker Values array property? If I understand your
need correctly, I suspect that you can control the tick labeling this
way.

Ben


--
Ben Tupper
Bigelow Laboratory for Ocean Science
180 McKown Point Road
West Boothbay Harbor, ME 04575
www.b
igelow.org
btupper@bigelow.org
0 Kudos
Message 2 of 6
(5,060 Views)
Ben Tupper wrote:

>
> Robert Stockwell wrote:
>
>
>>I want my custom tick names to be tied to the marker, since
>>I will programmatically change the tick names based on the
>>data, and the will have to scale with the size of the graph
>>(i.e. if a user maximizes window), and it will also change with
>>different data begin sent to the graph.
>>
>>I could (i suppose) hide the tick names, and drop strings at
>>appropriate places, but that will take a bit of coding. Accessing
>>the ticknames would be much easier and cleaner.
>>
>>
>>
>
> Hi,
>
> Have you tried the Marker Values array property? If I understand your
> need correctly, I suspect that you can control the tick labeling this
> way.
>
> Ben
>
>
> --
> Ben Tupper
> Bigelow Laboratory for Ocean
Science
> 180 McKown Point Road
> West Boothbay Harbor, ME 04575
> www.bigelow.org
> btupper@bigelow.org


Thanks for the response Ben. The marker values does allow one
to adjust the ticks, however it is an array of floats. I want to
label the ticks with strings (i.e. "apple", "banana" etc).
In fact, it doesn't have to be an xy graph, a waveform graph would do.

Cheers,
bob
0 Kudos
Message 4 of 6
(5,060 Views)
Hi Tia,

you can do that.
I attach a simple vi that lets you set the cursor name and display it progammatically.

Good luck,

Alberto
0 Kudos
Message 3 of 6
(5,060 Views)
Robert,
Only numbers are allowed for marker ticks labels. String names for ticks are not available. The only solution would be to drop text labels over tick names.

Zvezdana S.
National Instruments
0 Kudos
Message 5 of 6
(5,060 Views)
thanks for the info!

Zvezdana S. wrote:

> Robert,
> Only numbers are allowed for marker ticks labels. String names for
> ticks are not available. The only solution would be to drop text
> labels over tick names.
>
> Zvezdana S.
> National Instruments
>
0 Kudos
Message 6 of 6
(5,060 Views)