GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Javascript (v4.1.1)
  • Python (v7.1.0)
  • R
  • Julia
  • Javascript (v4.1.1)
  • ggplot2
  • MATLAB
  • F#
  • Download Studio
  • Studio and Cloud Pricing
  • Dash Enterprise Pricing
  • Getting Started
  • Is Plotly Free?
  • Figure Reference

This view

  • Original page
  • New address

GeezerVison is showing plotly.com — Inset plots in JavaScript

Quick Reference
On This Page
View open positions at Plotly.

Simple Inset Graph

var trace1 = {
  x: [1, 2, 3],
  y: [4, 3, 2],
  type: 'scatter'
};

var trace2 = {
  x: [20, 30, 40],
  y: [30, 40, 50],
  xaxis: 'x2',
  yaxis: 'y2',
  type: 'scatter'
};

var data = [trace1, trace2];

var layout = {
  yaxis2: {
    domain: [0.6, 0.95],
    anchor: 'x2'
  },
  xaxis2: {
    domain: [0.6, 0.95],
    anchor: 'y2'
  }
};

Plotly.newPlot('myDiv', data, layout);
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.