# Plot contour

**URL:** <https://discourse.mcneel.com/t/plot-contour/116632>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [January 20, 2021, 5:06am UTC](https://discourse.mcneel.com/t/plot-contour/116632 "2021-01-20T05:06:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alaedini.sh](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alaedini.sh/32/276901_2.png) [@alaedini.sh](https://discourse.mcneel.com/u/alaedini.sh)\
**Post date:** [January 20, 2021, 5:06am UTC](https://discourse.mcneel.com/t/plot-contour/116632/1 "2021-01-20T05:06:43Z")

</div>

Hi,

Firstly thanks for taking the time to read this.

I am fairly new to grasshopper and I am currently trying to create 2D contour plots, where I can hopefully define the contour values I would like to see on the plots, from a series of XYZ coordinates taken from excel. I have already attached the excel and grasshopper file. If would be great if you help me to fix the file,  
[Heat map with XYZ-sa.gh|attachmen[XYZ1.zip](https://discourse.mcneel.com/uploads/short-url/iPtUREqEgsoeKYmBsAoSwOnccVA.zip) (25.1 KB) t](upload://hWZNkLIuMfzAC1muJdl6skFRCoy.gh) (10.7 KB)

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [January 20, 2021, 8:12am UTC](https://discourse.mcneel.com/t/plot-contour/116632/2 "2021-01-20T08:12:59Z")

</div>

Hi -

> [@alaedini.sh](#):
>
> If would be great if you help me to fix the file,

I’m not sure what, exactly, the question here is. I see that, in your Grasshopper definition, you don’t get any values from the Excel file. If that is the extent of the issue, you should just install one of several plug-ins that imports data from Excel.

One that I haven’t yet used but appears to make people happy can be found from this post:

> [@Import and export Excel files with the NPOI plugin : EXCELLENT!](https://discourse.mcneel.com/t/import-and-export-excel-files-with-the-npoi-plugin-excellent/84627):
>
> This Plugin rocks ! [NPOI\_Excel Plugin](https://www.food4rhino.com/app/npoiexcel) -No need for Excel to be opened -Very fast write -Ability to create files with multiple worksheets -Import and export of cell ranges -… It is based on NPOI, a Dot Net port of [POI](https://en.wikipedia.org/wiki/Apache_POI) , a java library allowing to read and wrtite multiple Microsoft formats. The example file is partly in Chinese, but I have translated it in English here : [ExcelExample-Translated.gh (17.8 KB)](https://discourse.mcneel.com/uploads/short-url/wDNZByPLbeQBZJ23qdcUrBtqND7.gh)

> [@alaedini.sh](#):
>
> (upload://hWZNkLIuMfzAC1muJdl6skFRCoy.gh) (10.7 KB)

Your attachment didn’t quite make it all the way through. Here is a link to your file that should work:  
[https://discourse.mcneel.com/uploads/short-url/hWZNkLIuMfzAC1muJdl6skFRCoy.gh](https://discourse.mcneel.com/uploads/short-url/hWZNkLIuMfzAC1muJdl6skFRCoy.gh)

In the attached modified version, I have internalized the Excel data and created points from that (white group). When I then connect that to the rest of your definition, I get some kind of heat map:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/9/4/9940a864966e3692cc9633483737d5fc4b4adedc.jpeg)

[Heat map with XYZ-sa-modified.gh](https://discourse.mcneel.com/uploads/short-url/cWjJBCgCwX983j1UcI4HnRpat2k.gh) (31.7 KB)  
-wim

---

<div class="post-metadata">

**Author:** ![alaedini.sh](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alaedini.sh/32/276901_2.png) [@alaedini.sh](https://discourse.mcneel.com/u/alaedini.sh)\
**Post date:** [January 21, 2021, 12:41am UTC](https://discourse.mcneel.com/t/plot-contour/116632/4 "2021-01-21T00:41:19Z")

</div>

Hi Wim,

Thank you so much for your help,  
Can you please help me with how to internalized my data to a grasshopper? I have a problem loading lunch boxes in grasshopper

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [January 21, 2021, 1:33pm UTC](https://discourse.mcneel.com/t/plot-contour/116632/5 "2021-01-21T13:33:04Z")

</div>

Hi -

> [@alaedini.sh](#):
>
> Can you please help me with how to internalized my data to a grasshopper?

You can internalize data in a component by right-clicking on the input side:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/a/1/da15ee14886e8db2181ca7f82f0740b2d0a94022.png)

> [@alaedini.sh](#):
>
> I have a problem loading lunch boxes in grasshopper

I take it that this doesn’t have anything to do with anything else in this thread?  
`Lunchbox` is a Grasshopper plug-in. You can either download it from Food4Rhino or automatically download and install it through the `PackageManager`.  
If you are on Rhino 7, you can use this link: rhino7://package/search?name=Lunchbox  
If you are on Rhino 6, you can use the `-TestPackageManager` command and search for “Lunchbox”. You’ll need to have an up-to-date copy of Rhino 6 to be able to install Lunchbox.  
-wim

---

<div class="post-metadata">

**Author:** ![alaedini.sh](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alaedini.sh/32/276901_2.png) [@alaedini.sh](https://discourse.mcneel.com/u/alaedini.sh)\
**Post date:** [January 21, 2021, 10:17pm UTC](https://discourse.mcneel.com/t/plot-contour/116632/6 "2021-01-21T22:17:24Z")

</div>

I updated rhino and my issue solved, Thank you so much Wim
