Skip to main content

wxPython utilities and enhanced controls

Project description

iwx
===

**iwx** is a collection of enhanced controls for wxPython

Mini-Demos
----------

Plot module
^^^^^^^^^^^

::

# -*- coding: utf-8 -*-
"""
Plotting in wxPython like Matplotlib
"""

import numpy as np
import wx
from iwx.plot import Figure, Axes


def test():
n = 100 # Number of points
x = np.linspace(0,3*np.pi,n)
y1 = np.cos(x) + np.random.random(n)
y2 = np.sin(x) + np.random.random(n)

fig = Figure()
ax = fig.add_axes()
ax.plot(x,y1, color="#00ffff", legend="Y1", width=2)
ax.plot(x,y2, color="#ff00ff", legend="Y2", width=3)
ax.set_xlabel("X")
ax.set_ylabel("y")
ax.set_title("Graphics")
ax.grid()
ax.legend()
fig.show()

if __name__ == '__main__':
app = wx.App()
test()
app.MainLoop()


and obtains:

.. image:: examples/images/plot.PNG
:scale: 80%

Installation
------------

Using pip

::

pip install iwx

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iwx-0.1.0.dev1.zip (14.7 kB view details)

Uploaded Source

File details

Details for the file iwx-0.1.0.dev1.zip.

File metadata

  • Download URL: iwx-0.1.0.dev1.zip
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iwx-0.1.0.dev1.zip
Algorithm Hash digest
SHA256 f689df99b819f8118ca52dfa854acdf2c3f82f3a0e682d628b1f6a1fe9ccfcab
MD5 495a5053af538fc446ad58fe2ec5a97e
BLAKE2b-256 4b2bc4d3e019017a4600ab05e4e0eaeff2302e675852a6046537b4334868670f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page