{ "info": { "author": "Francois Cuvelier", "author_email": "cuvelier@math.univ-paris13.fr", "bugtrack_url": null, "classifiers": [ "Topic :: Scientific/Engineering" ], "description": ".. _matplotlib: https://matplotlib.org/\n\n.. _fc-matplotlib4mesh: http://www.math.univ-paris13.fr/~cuvelier/software/Python/fc-matplotlib4mesh.html \n\n.. _fc-meshtools: http://www.math.univ-paris13.fr/~cuvelier/software/Python/fc-meshtools.html \n\n\n.. image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/pyfc-matplotlib4mesh_400.png\n :width: 200px\n :align: left\n\nThe **fc\\_matplotlib4mesh** Python package allows to display simplicial meshes or datas on simplicial meshes by using `matplotlib`_ (>= 2.0.0).\nThe simplicial meshes must be given by two arrays : the vertices array and the connectivity array.\n\n\nIntroduction:\n------------- \n\nSimplicial meshes could be:\n\n - a triangular mesh in dimension 2, made with 2-simplices (ie. triangles),\n - a tetrahedral mesh in dimension 3, made with 3-simplices (ie. tetrahedron),\n - a triangular mesh in dimension 3 (surface mesh), made with 2-simplices,\n - a line mesh in dimension 2 or 3 made with 1-simplices (ie. lines).\n\nA simplicial mesh is given by its vertices array **q** and its connectivity array **me**\nFor demonstration purpose, some simplicial meshes are given in this package. They can be load\nby using the function ``getMesh2D``, ``getMesh3D`` or ``getMesh3Ds``\nof the ``fc_meshtools`` package.\n\n\nDocumentation is available on `fc-matplotlib4mesh`_ dedicated web page.\n\nInstallation:\n-------------\n\nThe **fc\\_matplotlib4mesh** Python package is available from the Python Package Index, so to install/upgrade simply type\n\n.. code:: \n\n pip install fc_matplotlib4mesh -U\n \n\nThereafter, it's possible to run one of the demo functions \n\n.. code:: python\n\n import fc_matplotlib4mesh\n fc_matplotlib4mesh.demos.plot3D()\n \n \n.. |plot3D_fig1| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot3D_fig1.png \n :width: 300\n :align: middle\n \n.. |plot3D_fig2| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot3D_fig2.png \n :width: 300\n :align: middle\n \n.. |plot3D_fig3| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot3D_fig3.png \n :width: 300\n :align: middle\n \n+---------------+---------------+---------------+\n| |plot3D_fig1| | |plot3D_fig2| | |plot3D_fig3| |\n+---------------+---------------+---------------+\n\n.. code:: python\n\n import fc_matplotlib4mesh\n fc_matplotlib4mesh.demos.plot2D()\n \n \n.. |plot2D_fig1| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot2D_fig1.png \n :width: 300\n :align: middle\n \n.. |plot2D_fig2| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot2D_fig2.png \n :width: 300\n :align: middle\n \n.. |plot2D_fig3| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot2D_fig3.png \n :width: 300\n :align: middle\n \n+---------------+---------------+---------------+\n| |plot2D_fig1| | |plot2D_fig2| | |plot2D_fig3| |\n+---------------+---------------+---------------+\n\nExample:\n--------\n\nThere is a complete source code used to represent a function on a sphere\n\n.. code:: python\n\n import matplotlib.pyplot as plt\n from fc_tools.Matplotlib import set_axes_equal\n import fc_matplotlib4mesh as plt4sim\n from fc_matplotlib4mesh.demos import getMesh3Ds\n import numpy as np\n q2,me2=getMesh3Ds(2)\n q1,me1=getMesh3Ds(1)\n f=lambda x,y,z: np.cos(3*x-1)*np.sin(2*y-2)*np.sin(3*z)\n u2=f(q2[0],q2[1],q2[2])\n u1=f(q1[0],q1[1],q1[2])\n plt.ion()\n plt.figure(1)\n pp=plt4sim.plot(q2,me2,u2)\n plt4sim.plotmesh(q1,me1,color='Black',linewidths=2)\n plt.colorbar(pp)\n plt.axis('off')\n set_axes_equal()\n plt.figure(2)\n pp=plt4sim.plot(q1,me1,u1,linewidths=2,vmin=min(u2),vmax=max(u2))\n plt4sim.plotmesh(q2,me2,color='LightGray',alpha=0.1)\n plt.colorbar(pp)\n plt.axis('off')\n set_axes_equal()\n\n.. |plot3Ds_fig1| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot3Ds_fig1.png \n :width: 300\n :align: middle\n \n.. |plot3Ds_fig2| image:: http://www.math.univ-paris13.fr/~cuvelier/software/codes/Python/fc-matplotlib4mesh/snapshots/matplotlib4mesh_plot3Ds_fig2.png \n :width: 300\n :align: middle\n\n+----------------+----------------+\n| |plot3Ds_fig1| | |plot3Ds_fig2| |\n+----------------+----------------+", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.math.univ-paris13.fr/~cuvelier/software", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "fc-matplotlib4mesh", "package_url": "https://pypi.org/project/fc-matplotlib4mesh/", "platform": "Linux", "project_url": "https://pypi.org/project/fc-matplotlib4mesh/", "project_urls": { "Homepage": "http://www.math.univ-paris13.fr/~cuvelier/software" }, "release_url": "https://pypi.org/project/fc-matplotlib4mesh/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "The fc_matplotlib4mesh package displays simplicial meshes or datas on simplicial meshes by using Matplotlib", "version": "0.1.2" }, "last_serial": 5268115, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "6609b23e7df2401c970c968ac3f243d9", "sha256": "170aa33049297470f7f37276542053597be533fba388a9ece9a098379dc42b7e" }, "downloads": -1, "filename": "fc_matplotlib4mesh-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6609b23e7df2401c970c968ac3f243d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2585859, "upload_time": "2017-04-30T11:14:14", "url": "https://files.pythonhosted.org/packages/9d/26/3331d174395ee85f453917ccfb935b8d44d50f45d4970dda1c36eb5917dc/fc_matplotlib4mesh-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "141245d73cdc5ccb92a7258bda2c86c3", "sha256": "6ad1a7ebb0ea868a7a614220387f07dc4af70361a3d3bf13fe74fe3d42e02224" }, "downloads": -1, "filename": "fc_matplotlib4mesh-0.0.3.tar.gz", "has_sig": false, "md5_digest": "141245d73cdc5ccb92a7258bda2c86c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2585844, "upload_time": "2017-05-02T09:05:03", "url": "https://files.pythonhosted.org/packages/4f/aa/45b3885e3ea70933cbfc852323a84d87ee41396a75506cbd8549e6064ef0/fc_matplotlib4mesh-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "796ebce79e82aac70f7668e80962318b", "sha256": "2528c5233e81b2c5a89356fba9eb7417dc2249a16a3982c8034baed703080bdf" }, "downloads": -1, "filename": "fc_matplotlib4mesh-0.1.0.tar.gz", "has_sig": false, "md5_digest": "796ebce79e82aac70f7668e80962318b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9527, "upload_time": "2019-05-10T14:31:14", "url": "https://files.pythonhosted.org/packages/5a/c4/ce00fb3c5208521cf1161c406d0fab6b5cbda89a2142a8aec5dfba81973e/fc_matplotlib4mesh-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c7a727d1f9e90099484f3e46a2ae7c3d", "sha256": "602702fe0790d8ef2fc1a72c4cd350c689eac0e1b37cb57df90f27a8f3daa0e3" }, "downloads": -1, "filename": "fc_matplotlib4mesh-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c7a727d1f9e90099484f3e46a2ae7c3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9144, "upload_time": "2019-05-11T08:23:17", "url": "https://files.pythonhosted.org/packages/8f/6a/9b0a0cd0d8002fb9dec2edd52bf833e566dc7048cc61863274ad63e4c0c8/fc_matplotlib4mesh-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "924d0b5dd1d14887745924efece76fd7", "sha256": "0cb80c6bc11e7bd2efefb0ca9221f862661e3b6a1f3d01cdfc76b38580435538" }, "downloads": -1, "filename": "fc_matplotlib4mesh-0.1.2.tar.gz", "has_sig": false, "md5_digest": "924d0b5dd1d14887745924efece76fd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8756, "upload_time": "2019-05-14T15:43:09", "url": "https://files.pythonhosted.org/packages/9d/b1/25449f0e47aad05ca1f8a0423ef89fcb726c478d8204a01b0efaf73ffe0f/fc_matplotlib4mesh-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "924d0b5dd1d14887745924efece76fd7", "sha256": "0cb80c6bc11e7bd2efefb0ca9221f862661e3b6a1f3d01cdfc76b38580435538" }, "downloads": -1, "filename": "fc_matplotlib4mesh-0.1.2.tar.gz", "has_sig": false, "md5_digest": "924d0b5dd1d14887745924efece76fd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8756, "upload_time": "2019-05-14T15:43:09", "url": "https://files.pythonhosted.org/packages/9d/b1/25449f0e47aad05ca1f8a0423ef89fcb726c478d8204a01b0efaf73ffe0f/fc_matplotlib4mesh-0.1.2.tar.gz" } ] }