[vtkusers] Recommended way to create a 2D scatter plot

Marcus D. Hanwell marcus.hanwell at kitware.com
Thu Jul 29 10:18:49 EDT 2010


On Thu, Jul 29, 2010 at 9:47 AM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> On Wed, Jul 28, 2010 at 7:21 PM, Ben Medina <ben.medina at gmail.com> wrote:
> > Great! I'm a bit confused about why one uses a PolyDataMapper and
> > Actor, rather than a PolyDataMapper2D and Actor2D as I had been doing.
> >
> > Now is there any way to add 2D axes to the plot?
> >
> > Going forward, is this still the preferred way of creating 2D scatter
> > plots, or will the charts API take over?
> >
> > Thanks,
> > Ben
>
> If you want an actual scatter plot with axes you should definitely use
> the Charts API that Marcus has been developing. He said he will be
> adding a scatter plot example to src/VTK/Charts/Testing/Cxx very soon.
>
> I have an example test locally, I will try to get it committed today so
that you can take a look. The 2D chart stuff in VTK is the preferred way to
create scatter plots going forward, more features will be added but basic
scatter plots are already possible.

Marcus
--
Marcus D. Hanwell, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4937
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100729/26f3702f/attachment.htm>


More information about the vtkusers mailing list