Giter Club home page Giter Club logo

Comments (2)

bmondal94 avatar bmondal94 commented on August 17, 2024

Dear AndrewFalkowski,
Nice. Yes, it is certainly possible. If I understood correctly, your example plot is the triangular version of
Rectangular_ternary_plot svg
If this is the case, then you can use the python-ternary to plot the data points. The only thing you have to care about is how to read those data and accordingly the axis ticks. Below is a test example.

import ternary, random
import matplotlib.pyplot as plt

points = [(10,10,80),(40,20,40)]
### Scatter Plot
scale = 100
axes_colors={'b':'r','l':'b','r':'k'}

figure, ax = plt.subplots(figsize=(10,10))
tax = ternary.TernaryAxesSubplot(ax=ax,scale=scale)

tax.set_title("Scatter Plot", fontsize=20)
tax.boundary(linewidth=2.0, axes_colors=axes_colors)
tax.gridlines(multiple=5, left_kwargs={'c': axes_colors['l']}, right_kwargs={'c': axes_colors['r']}, horizontal_kwargs={'c':  axes_colors['b']},linewidth=1)

tax.scatter(points, marker='s', color='red', label="test")

tax.legend()
tax.ticks(axis='l', linewidth=1, multiple=10, clockwise=True, axes_colors={'l':'r'})
tax.ticks(axis='b', linewidth=1, multiple=10, clockwise=False, axes_colors={'b':'b'})
tax.ticks(axis='b', linewidth=1, multiple=10, clockwise=True, axes_colors={'b':'k'})

tax.get_axes().axis('off')
tax.clear_matplotlib_ticks()
tax.get_axes().set_aspect(1)

tax.show()

test_ternary_non_std

This is what it looks like. The example is very preliminary.

from python-ternary.

AndrewFalkowski avatar AndrewFalkowski commented on August 17, 2024

Thank you, this was helpful.

from python-ternary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.