# plot a graph

**URL:** <https://forums.developer.nvidia.com/t/plot-a-graph/25961>\
**Category:** CUDA Programming and Performance\
**Created:** [March 3, 2012, 6:58am UTC](https://forums.developer.nvidia.com/t/plot-a-graph/25961 "2012-03-03T06:58:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuldeep](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@kuldeep](https://forums.developer.nvidia.com/u/kuldeep)\
**Post date:** [March 3, 2012, 6:58am UTC](https://forums.developer.nvidia.com/t/plot-a-graph/25961/1 "2012-03-03T06:58:36Z")

</div>

how to draw any x-y plot in fortran using portland group compiler

---

<div class="post-metadata">

**Author:** ![pasoleatis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@pasoleatis](https://forums.developer.nvidia.com/u/pasoleatis)\
**Post date:** [March 3, 2012, 12:39pm UTC](https://forums.developer.nvidia.com/t/plot-a-graph/25961/2 "2012-03-03T12:39:43Z")

</div>

Hello,

I have not tried something like that, but I think that if you want to plot something directly from cuda you will need to have interoperability with opengl or directx. Take a look at book cuda by example (it is in C, but you can get idea about ho it works), or make a quick search on google for “cuda and opengl” there are many tutorials online.

---

<div class="post-metadata">

**Author:** ![melonakos](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/melonakos/32/10034_2.png) [@melonakos](https://forums.developer.nvidia.com/u/melonakos)\
**Post date:** [March 3, 2012, 11:25pm UTC](https://forums.developer.nvidia.com/t/plot-a-graph/25961/3 "2012-03-03T23:25:12Z")

</div>

[ArrayFire](http://accelereyes.com/arrayfire_tour) is the only package that I’m aware of that provides a nice Graphics Library in conjunction with CUDA compute. Check out the demos and example that come shipped with ArrayFire. Learn more about the graphics functions, [here](http://www.accelereyes.com/arrayfire_cuda/group __gfx__ ptr.htm).

Here is an example plot that is easy to make with ArrayFire:

[External Media](http://wiki.accelereyes.com/wiki/images/1/10/Gfx_simple.png "Media hosted on another site. Click to open in a new tab.")
