# Trivial question on plotting data from table and history

**URL:** <https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929>\
**Category:** Uncategorized\
**Created:** [February 18, 2023, 5:16pm UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929 "2023-02-18T17:16:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VijayKiranKota](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@VijayKiranKota](https://forum.itascainternational.com/u/VijayKiranKota)\
**Post date:** [February 18, 2023, 5:16pm UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929/1 "2023-02-18T17:16:04Z")

</div>

How to plot a table and history data together in a plot. I tried the following command line, however I can see the axes labels overlap one over the other. Is there a way out? Please be of assistance. Thanks.

table 1 name ‘Experimental data’  
plot create plot Comparison  
plot add table 1 linestyle color black  
plot add hist 5 y vs 6 x xaxis label ‘Axial strain’ yaxis label ‘Axial Stress’

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/1X/e66a4cf213c423571f254f596e53ec557ece5b7b.png)

---

<div class="post-metadata">

**Author:** ![jhazzard](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jhazzard](https://forum.itascainternational.com/u/jhazzard)\
**Post date:** [February 19, 2023, 10:55pm UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929/2 "2023-02-19T22:55:08Z")

</div>

You need to export the history to a table, and then plot the two tables together. I can’t remember the command in 5.2, but I’m sure it’s possible.

---

<div class="post-metadata">

**Author:** ![VijayKiranKota](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@VijayKiranKota](https://forum.itascainternational.com/u/VijayKiranKota)\
**Post date:** [February 20, 2023, 5:51am UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929/3 "2023-02-20T05:51:48Z")

</div>

Sure. I get it. Many thanks @jhazzard.  
-V

---

<div class="post-metadata">

**Author:** ![markus](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/markus/32/288_2.png) [@markus](https://forum.itascainternational.com/u/markus)\
**Post date:** [February 20, 2023, 9:48am UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929/4 "2023-02-20T09:48:45Z")

</div>

You can also try to set the x- and y-range of both plots to be fixed to the same values. This way both legends (most times) overlap exactly and it appears as one plot. This is more useful than exporting, since you can observe it during model runs.

---

<div class="post-metadata">

**Author:** ![VijayKiranKota](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@VijayKiranKota](https://forum.itascainternational.com/u/VijayKiranKota)\
**Post date:** [February 20, 2023, 10:46am UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929/5 "2023-02-20T10:46:39Z")

</div>

Many thanks, @markus. That’s a helpful solution.

---

<div class="post-metadata">

**Author:** ![pmvr](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@pmvr](https://forum.itascainternational.com/u/pmvr)\
**Post date:** [November 14, 2025, 12:10am UTC](https://forum.itascainternational.com/t/trivial-question-on-plotting-data-from-table-and-history/929/6 "2025-11-14T00:10:31Z")

</div>

Hi. You can try this if you have 02 data tables:

plot create ‘graf’  
plot item create chart-table …  
table ‘table1’ …  
table ‘table2’

In order to convert from history to data table:

history export ‘data\_x’ vs ‘data\_y’ table ‘table\_from\_history’

Hope it helps.
