# Plots of History Locations for histories created using FISH

**URL:** <https://forum.itascainternational.com/t/plots-of-history-locations-for-histories-created-using-fish/734>\
**Category:** FLAC3D\
**Tags:** fish\
**Created:** [September 1, 2022, 1:30pm UTC](https://forum.itascainternational.com/t/plots-of-history-locations-for-histories-created-using-fish/734 "2022-09-01T13:30:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlbertoJaen](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@AlbertoJaen](https://forum.itascainternational.com/u/AlbertoJaen)\
**Post date:** [September 1, 2022, 1:30pm UTC](https://forum.itascainternational.com/t/plots-of-history-locations-for-histories-created-using-fish/734/1 "2022-09-01T13:30:55Z")

</div>

Dear All,

Does anyone know if it would be possible to plot history locations for histories created using FISH (e.g. acceleration of a structural node as shown below)?

fish define get\_node1  
\_node1 = struct.node.find(1)  
end  
@get\_node1  
fish define \_acceleration1x  
\_acceleration1x = struct.node.acc.global(\_node1,1)  
end  
fish history \_acceleration1x

Thank you so much.

---

<div class="post-metadata">

**Author:** ![cheng](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@cheng](https://forum.itascainternational.com/u/cheng)\
**Post date:** [September 1, 2022, 5:05pm UTC](https://forum.itascainternational.com/t/plots-of-history-locations-for-histories-created-using-fish/734/2 "2022-09-01T17:05:28Z")

</div>

You can write a small FISH function to define user-define scalars at the history positions,  
then plot User-Defined Data → Scalars:

> fish define Hist\_Location  
> local s = data.scalar.create(struct.node.pos( \_node1))  
> data.scalar.value(s) = 1.0 ; value not important  
> end  
> [Hist\_Location]

---

<div class="post-metadata">

**Author:** ![AlbertoJaen](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@AlbertoJaen](https://forum.itascainternational.com/u/AlbertoJaen)\
**Post date:** [September 2, 2022, 8:42am UTC](https://forum.itascainternational.com/t/plots-of-history-locations-for-histories-created-using-fish/734/3 "2022-09-02T08:42:17Z")

</div>

Thank you so much indeed Zhao, it is much appreciated.
