Group Abstract Group Abstract

Message Boards Message Boards

Avoid problem with dynamic ListStepPlot?

Dear Community,

I'm trying to construct a dynamic ListStepPlot via locators. The three locators (pt1, pt2, pt3) are confined inside a polygon. Upon running the code however the ListStepPlot constructed from the dynamic points does not show up. Could someone pls. have a look and help? The notebook is attached.

Tx in advance,

best regards Andras

Attachments:
POSTED BY: Andras Gilicz
9 Replies

Dear Gianluca,

Works perfect, thank you very much, great help to my work :-)

best regards

Andras

POSTED BY: Andras Gilicz

@Michael

Thank you very much

best regards

Andras

POSTED BY: Andras Gilicz
POSTED BY: Gianluca Gorni

Try

Graphics[Dynamic@ First@ ListStepPlot[{pt1, pt2, pt3}]]
POSTED BY: Michael Rogers

Dear Gianluca,

Did not work either. No problem, I'll try another solution, I gues I'll write a function for that.

BTW may I have another question? How could I add a flying annotation to a Locator? I.e. a label (e.g. "P1"), which moves together with the Locator upon draging?

Tx in advance best regards

Andras

POSTED BY: Andras Gilicz
POSTED BY: Gianluca Gorni
POSTED BY: Andras Gilicz

Dear Gianluca,

Tx for the tip. Show works and the ListStepPlot shows up correctly initially, but it is still not dynamic and it does not move as I drag the Locators. How could I make it dynamic? (Notebook attached)

Tx for the help in advance, best regards Andras

Attachments:
POSTED BY: Andras Gilicz

You cannot put a ListStepPlot that way inside Graphics. You can combine Graphics with ListStepPlot with Show or Inset.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard