Comments (2)
Thank you for reporting this. The Exception
is raised at:
Lines 404 to 405 in f981f43
Following the changes of the code in the past, the test of dimension != 2
, and the message have been essentially unchanged since this code was introduced (the message has changed by removing a whitespace character), in tulip
: tulip-control/tulip-control@85a9ef3#diff-a3402e018e75772f98fab2fad2a90be9bb565a04576ec077b6e5f5aebb5d89beR94-R96
Initially, this check printed a message and returned early from the call. Later, printing changed to logging, and logging to raising an exception (this change was in 8407888).
Regarding possibilities for change, the existing implementation of the function polytope.polytope._get_patch
passes the polytope vertices to the constructor of the class matplotlib.patches.Polygon
:
Line 2205 in f981f43
The docstring of the class matplotlib.patches.Polygon
requires two-dimensional points:
So with the current implementation, plotting one-dimensional polytopes is not supported. If this is ever implemented, some convention would be needed, e.g., that one-dimensional polytopes are plotted on the x-axis. Until then, the proposed change of replacing the word "larger" with "other" appears to be a good choice.
This issue applies also to the analogous test and message about regions (a class that can represent polytopes that can be nonconvex):
Lines 867 to 868 in f981f43
from polytope.
Addressed in commit ed6e798, which is now included in the mainline branch.
from polytope.
Related Issues (20)
- cvxopt 1.2.0 bug HOT 5
- support Python 3.7 HOT 4
- create regression test for bug fix of PR #56
- release `polytope == 0.2.2` HOT 1
- Zero Volume for 14D polytope HOT 8
- remove support for Python 2.7, 3.5, 3.6 HOT 7
- support Python 3.10
- With large scales `reduce` can remove non-redundant hyperplanes HOT 2
- `.project` can return redundant hyperplanes despite `minrep == True` HOT 1
- Plotting polytopes on same plot/ adding "_get_patch" as an import option
- How to use cvxopt to find intersection between polytope HOT 4
- polytope volume changing on each trial HOT 2
- Polytope.reduce and removal of possibly overlapping polytopes HOT 3
- Updated release on PyPI? HOT 4
- Rmove or delete particular polytope from a region HOT 1
- combining many polytopes into single polytope HOT 4
- MIB2 cannot clear 01637 error HOT 3
- minkovski sum of polytopes HOT 5
- Usefull future feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polytope.