Discussion:
[jira] [Created] (MAHOUT-1842) SImple 3d surface plots
Andrew Palumbo (JIRA)
2016-04-30 00:38:12 UTC
Permalink
Andrew Palumbo created MAHOUT-1842:
--------------------------------------

Summary: SImple 3d surface plots
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: New Feature
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13


Create a class {{msurf3}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-04-30 00:39:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo updated MAHOUT-1842:
-----------------------------------
Issue Type: Sub-task (was: New Feature)
Parent: MAHOUT-1838
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf3}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-04-30 04:02:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo updated MAHOUT-1842:
-----------------------------------
Description: Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points. (was: Create a class {{msurf3}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points. )
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-04-30 04:46:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265150#comment-15265150 ]

ASF GitHub Bot commented on MAHOUT-1842:
----------------------------------------

Github user andrewpalumbo closed the pull request at:

https://github.com/apache/mahout/pull/230
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-04-30 04:46:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265151#comment-15265151 ]

ASF GitHub Bot commented on MAHOUT-1842:
----------------------------------------

GitHub user andrewpalumbo reopened a pull request:

https://github.com/apache/mahout/pull/230

MAHOUT-1842: simple 3d plots

Simple first cut of 3d plots and surfaces. Surfaces are a bit more complicated in that data may need to be ordered.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/andrewpalumbo/mahout MAHOUT-1842

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/mahout/pull/230.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #230

----
commit 98365304172afd0ffe08fc606f2f307ddc182b6e
Author: Andrew Palumbo <***@apache.org>
Date: 2016-04-30T03:26:03Z

allow for decimal sample percentages. Start basic 3d surface and scatter plots

commit 80de3d02bb1f1ff88d5020798ada305e8f969650
Author: Andrew Palumbo <***@apache.org>
Date: 2016-04-30T04:00:05Z

small refactoring, simple 3d plot example

----
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-05-01 01:05:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265562#comment-15265562 ]

ASF GitHub Bot commented on MAHOUT-1842:
----------------------------------------

Github user andrewpalumbo commented on the pull request:

https://github.com/apache/mahout/pull/230#issuecomment-216006077

![2dhisto_20buckets_gaussian](Loading Image...)
![2dhisto_21buckets_100pct_gaussian](Loading Image...)
![2dhisto_10buckets_10pct_gaussian](Loading Image...)
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-05-01 01:31:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265569#comment-15265569 ]

ASF GitHub Bot commented on MAHOUT-1842:
----------------------------------------

Github user andrewpalumbo commented on the pull request:

https://github.com/apache/mahout/pull/230#issuecomment-216006981

![3d_histo](Loading Image...)
![3d_histo_rotated](Loading Image...)
![3d_histo_rotated_5000](Loading Image...)
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF GitHub Bot (JIRA)
2016-05-01 04:43:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265605#comment-15265605 ]

ASF GitHub Bot commented on MAHOUT-1842:
----------------------------------------

Github user andrewpalumbo commented on a diff in the pull request:

https://github.com/apache/mahout/pull/230#discussion_r61679453

--- Diff: math-scala/src/main/scala/org/apache/mahout/visualization/MahoutPlot.scala ---
@@ -18,7 +18,36 @@

package org.apache.mahout.visualization

+import java.awt.Graphics2D
+import java.awt.image.BufferedImage
+import java.io.File
+import javax.imageio.ImageIO
+import javax.swing.JFrame

-trait mlpot {
+import org.apache.mahout.math.Matrix
+import smile.plot.{PlotCanvas, PlotPanel}
+
+
+trait MahoutPlot {
+
+ var canvas : PlotCanvas = _
+ var plotPanel: PlotPanel = _
+ var plotFrame: JFrame = _
+ var mPlotMatrix: Matrix = _
+ def contentPane = canvas
+
+ // export a PNG of the plot to /tmp/test.png
+ def exportPNG(path: String ="/tmp/test.png") = {
+ val bi: BufferedImage =
+ new BufferedImage(contentPane.getWidth, contentPane.getHeight, BufferedImage.TYPE_INT_ARGB)
+
+ val g2d: Graphics2D = bi.createGraphics
+
+ contentPane.printAll(g2d)
+
+ val file: File = new File(path)
+
+ ImageIO.write(bi, "PNG", file)
+ }
--- End diff --

@pferrel Setup to easily export plot PNGs to the Filesystem. Maybe we can we can pipe these to the Zeppelin server via JSON?
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-05-01 21:59:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo reassigned MAHOUT-1842:
--------------------------------------

Assignee: Andrew Palumbo
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Assignee: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-05-01 21:59:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265970#comment-15265970 ]

Andrew Palumbo commented on MAHOUT-1842:
----------------------------------------

committed to master in b0cede1e2725c16b039c18c4eb0ee4aa324d7389

May still need work leaving open.
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Assignee: Andrew Palumbo
Fix For: 0.13
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Andrew Palumbo (JIRA)
2016-05-25 23:39:13 UTC
Permalink
[ https://issues.apache.org/jira/browse/MAHOUT-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Palumbo resolved MAHOUT-1842.
------------------------------------
Resolution: Later

Putting mahout plotting on hold for now in favor of Mahout-Zeppelin plotting integration.
Post by Andrew Palumbo (JIRA)
SImple 3d surface plots
-----------------------
Key: MAHOUT-1842
URL: https://issues.apache.org/jira/browse/MAHOUT-1842
Project: Mahout
Issue Type: Sub-task
Affects Versions: 0.12.0
Reporter: Andrew Palumbo
Assignee: Andrew Palumbo
Fix For: 0.13.0
Create a class {{msurf}} which will fit accept a mx3 DRM and a sample percentage and create a 3d surface plot of the sampled points.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...