All Projects → facultyai → Scala Plotly Client

facultyai / Scala Plotly Client

Licence: mit
Visualise your data from Scala using Plotly

Programming Languages

scala
5932 projects

Projects that are alternatives of or similar to Scala Plotly Client

Dash Table
A First-Class Interactive DataTable for Dash
Stars: ✭ 382 (+879.49%)
Mutual labels:  data-science, plotly
Bubbly
A python package for plotting animated and interactive bubble charts using Plotly
Stars: ✭ 37 (-5.13%)
Mutual labels:  data-science, plotly
Plotly
Plotly for Rust
Stars: ✭ 433 (+1010.26%)
Mutual labels:  plot, plotly
Dashr
Dash for R - An R interface to the Dash ecosystem for creating analytic web applications
Stars: ✭ 337 (+764.1%)
Mutual labels:  data-science, plotly
Bowtie
Create a dashboard with python!
Stars: ✭ 724 (+1756.41%)
Mutual labels:  data-science, plotly
Dash Docs
📖 The Official Dash Userguide & Documentation
Stars: ✭ 338 (+766.67%)
Mutual labels:  data-science, plotly
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (+1264.1%)
Mutual labels:  graph, plot
Cryptocurrency Analysis Python
Open-Source Tutorial For Analyzing and Visualizing Cryptocurrency Data
Stars: ✭ 278 (+612.82%)
Mutual labels:  data-science, plotly
React Graph Vis
A react component to render nice graphs using vis.js
Stars: ✭ 629 (+1512.82%)
Mutual labels:  graph, visualisation
Function Plot
A 2d function plotter powered by d3 and interval arithmetic
Stars: ✭ 625 (+1502.56%)
Mutual labels:  graph, plot
Dash Cytoscape
Interactive network visualization in Python and Dash, powered by Cytoscape.js
Stars: ✭ 309 (+692.31%)
Mutual labels:  data-science, plotly
Uplot
📈 A small, fast chart for time series, lines, areas, ohlc & bars
Stars: ✭ 6,808 (+17356.41%)
Mutual labels:  graph, plot
Constellation
A graph-focused data visualisation and interactive analysis application.
Stars: ✭ 309 (+692.31%)
Mutual labels:  graph, visualisation
Ig Follow Count
📈 A simple Instagram analytics tool that continuously logs and graphs your follower count.
Stars: ✭ 35 (-10.26%)
Mutual labels:  graph, plotly
Lantern
Data exploration glue
Stars: ✭ 292 (+648.72%)
Mutual labels:  data-science, plotly
Lets Plot
An open-source plotting library for statistical data.
Stars: ✭ 531 (+1261.54%)
Mutual labels:  data-science, plot
nodeplotlib
NodeJS plotting library for JavaScript and TypeScript. On top of plotly.js. Inspired by matplotlib.
Stars: ✭ 115 (+194.87%)
Mutual labels:  plotly, plot
Pymeasure
Scientific measurement library for instruments, experiments, and live-plotting
Stars: ✭ 255 (+553.85%)
Mutual labels:  graph, plot
Smile
Statistical Machine Intelligence & Learning Engine
Stars: ✭ 5,412 (+13776.92%)
Mutual labels:  graph, data-science
Adjusttext
A small library for automatically adjustment of text position in matplotlib plots to minimize overlaps.
Stars: ✭ 731 (+1774.36%)
Mutual labels:  graph, plot

Build Status

Plotly client

## Installation

To add the plotly client to your code, add the following lines to your build.sbt:

libraryDependencies += "co.theasi" %% "plotly" % "0.2.0"

To install the bleeding edge version, add this instead:

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

libraryDependencies += "co.theasi" %% "plotly" % "0.2.1-SNAPSHOT"

Documentation

## Authentication

To create a graph on Plotly, start by opening an account with the web UI. Then create an API key by clicking on your username in the top right hand corner of the screen and selecting SETTINGS > API KEYS. Create the file ~/.plotly/.credentials in your home directory. The file should look like:

{
  "username": "pbugnion",
  "api_key": "l233fgfdsjk"
}

Note that if you have already used another Plotly client, you probably do not need to do this.

## Your first graph

To create a graph on the Plotly servers, start by importing the client:

import co.theasi.plotly._

Then, just pass the x, y series that you want to plot:

scala> val x = Vector(1.0, 2.0, 3.0)

scala> val y = Vector(1.0, 4.0, 9.0)

scala> val p = Plot().withScatter(x, y)

scala> draw(p, "hello-plotly")
PlotFile = PlotFile(pbugnion:264,hello-plotly)

This will create a graph called hello-plotly in your account!

## Using custom credentials

Sometimes, creating a ~/.plotly/.credentials file isn't practical. In that case, you can pass credentials to Plotly programatically by defining a custom server.

import co.theasi.plotly._

implicit val server = new writer.Server {
  val credentials = writer.Credentials("<username>", "<api_key>")
  val url = "https://api.plot.ly/v2/"
}

You can then use Plotly commands normally:

scala> val p = Plot().withScatter(Vector(1, 2, 3), Vector(1, 4, 9))

scala> draw(p, "custom-credentials")
PlotFile = PlotFile(pbugnion:268,custom-credentials)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].