# Grasshopper pulgin UI about Graph Mapper. How to achieve this function

**URL:** <https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [March 19, 2022, 1:09pm UTC](https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686 "2022-03-19T13:09:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanyuqingl](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yanyuqingl/32/367630_2.png) [@yanyuqingl](https://discourse.mcneel.com/u/yanyuqingl)\
**Post date:** [March 19, 2022, 1:09pm UTC](https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686/1 "2022-03-19T13:09:50Z")

</div>

![图片](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/f/3/0f39db74d668418ef560791f01450d4b24428f85.png)  
I want code a grasshopper node, The node cover a Graph Mapper UI to process the internal data. Where can I start my work. or what knowledge do I have to learn,

---

<div class="post-metadata">

**Author:** ![yanyuqingl](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yanyuqingl/32/367630_2.png) [@yanyuqingl](https://discourse.mcneel.com/u/yanyuqingl)\
**Post date:** [March 19, 2022, 1:40pm UTC](https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686/3 "2022-03-19T13:40:24Z")

</div>

Hi, Thank your reply, but that is not my point. I want to write my own node use c# to combine Graph Mapper and another funtion in one node. Think again ,mybe it’s not the best way to do it.

---

<div class="post-metadata">

**Author:** ![ajarindia](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ajarindia/32/496286_2.png) [@ajarindia](https://discourse.mcneel.com/u/ajarindia)\
**Post date:** [March 19, 2022, 1:53pm UTC](https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686/4 "2022-03-19T13:53:45Z")

</div>

Yes, my bad.

---

<div class="post-metadata">

**Author:** ![yanyuqingl](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/yanyuqingl/32/367630_2.png) [@yanyuqingl](https://discourse.mcneel.com/u/yanyuqingl)\
**Post date:** [March 19, 2022, 1:55pm UTC](https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686/5 "2022-03-19T13:55:52Z")

</div>

my bad ,I haven’t discribe the question good.

---

<div class="post-metadata">

**Author:** ![ajarindia](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ajarindia/32/496286_2.png) [@ajarindia](https://discourse.mcneel.com/u/ajarindia)\
**Post date:** [March 19, 2022, 2:08pm UTC](https://discourse.mcneel.com/t/grasshopper-pulgin-ui-about-graph-mapper-how-to-achieve-this-function/139686/6 "2022-03-19T14:08:43Z")

</div>

HTH,

> [@Graph mapper in Python?](https://discourse.mcneel.com/t/graph-mapper-in-python/8277/2):
>
> Hi dtw707 the technical limitation is that a graphmapper is not a GH\_Component, that’s why it does not show up. But even if it did, the useful functionality is only accessible after clicking a few times, so it would be difficult to really make it available as one function. What were you trying to achieve? What functions where you trying to map? It probably will not take very long to map sin, line, and a few of these functions just by using their equations? Giulio Giulio Piacentino for Robe…

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/2/6/826c3ff378a749d7319fb2b12aeb1545ef7dde12.png)

> **[Drawing Graphs in GH2](https://ieatbugsforbreakfast.com/2015/11/29/drawing-graphs-in-gh2/)**
>
> The surprising difficulties with drawing visual representations of equations.

> [@Graph mapper in Python?](https://discourse.mcneel.com/t/graph-mapper-in-python/8277/4):
>
> For example, the sin curve could be used like this: import math input = 10.0 def function\_to\_use(x): return math.cos(x \* 0.2 + math.pi \* 0.1) \* 0.4 + 2.0 mapper = function\_to\_use(input) a = mapper``` Does it help? Thanks Giulio -- Giulio Piacentino for Robert McNeel & Associates giulio@mcneel.com

I think you can code functions of graph mapper for your C# script like a sine curve, Bezier or Sinc.
