Merge branch 'master' of https://git.ad5001.eu/Ad5001/LogarithmPlotter
This commit is contained in:
commit
4e3fd84cf8
8 changed files with 19 additions and 9 deletions
|
@ -17,7 +17,7 @@
|
|||
"""
|
||||
from shutil import which
|
||||
|
||||
__VERSION__ = "0.1.1"
|
||||
__VERSION__ = "0.1.2"
|
||||
is_release = False
|
||||
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ D.Dialog {
|
|||
icon: "icons/settings/custom/label.svg"
|
||||
min: 1
|
||||
width: dlgProperties.width
|
||||
defValue: objEditor.obj.name
|
||||
value: objEditor.obj.name
|
||||
onChanged: function(newValue) {
|
||||
var newName = Utils.parseName(newValue)
|
||||
if(newName != '' && objEditor.obj.name != newName) {
|
||||
|
|
|
@ -158,7 +158,7 @@ class GainBode extends Common.ExecutableObject {
|
|||
|
||||
update() {
|
||||
super.update()
|
||||
if(Objects.currentObjects['Somme gains Bode'] != undefined) {
|
||||
if(Objects.currentObjects['Somme gains Bode'] != undefined && Objects.currentObjects['Somme gains Bode'].length > 0) {
|
||||
Objects.currentObjects['Somme gains Bode'][0].recalculateCache()
|
||||
} else {
|
||||
Objects.createNewRegisteredObject('Somme gains Bode')
|
||||
|
|
|
@ -147,7 +147,7 @@ class PhaseBode extends Common.ExecutableObject {
|
|||
}
|
||||
|
||||
update() {
|
||||
if(Objects.currentObjects['Somme phases Bode'] != undefined) {
|
||||
if(Objects.currentObjects['Somme phases Bode'] != undefined && Objects.currentObjects['Somme phases Bode'].length > 0) {
|
||||
Objects.currentObjects['Somme phases Bode'][0].recalculateCache()
|
||||
} else {
|
||||
Objects.createNewRegisteredObject('Somme phases Bode')
|
||||
|
|
|
@ -83,8 +83,8 @@ class SommeGainsBode extends Common.DrawableObject {
|
|||
var drawMin = 0.001
|
||||
|
||||
var baseY = 0
|
||||
var om0xGains = {100000: 0} // To draw the last part
|
||||
var om0xPass = {100000: 'high'} // To draw the last part
|
||||
var om0xGains = {1000000000: 0} // To draw the last part
|
||||
var om0xPass = {1000000000: 'high'} // To draw the last part
|
||||
Objects.currentObjects['Gain Bode'].forEach(function(gainObj) { // Sorting by their om_0 position.
|
||||
var om0x = gainObj.om_0.x.execute()
|
||||
if(om0xGains[om0x] == undefined) {
|
||||
|
@ -115,7 +115,7 @@ class SommeGainsBode extends Common.DrawableObject {
|
|||
}
|
||||
// Calculating parts
|
||||
var previousPallier = drawMin
|
||||
for(var pallier = 0; pallier <= om0xList.length; pallier++) {
|
||||
for(var pallier = 0; pallier < om0xList.length; pallier++) {
|
||||
var dbfn = new MathLib.Expression(`${gainTotal}*(ln(x)-ln(${previousPallier}))/ln(10)+${baseY}`)
|
||||
var inDrawDom = MathLib.parseDomain(`]${previousPallier};${om0xList[pallier]}]`)
|
||||
this.cachedParts.push([dbfn, inDrawDom])
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
logarithmplotter (0.1.2) unstable; urgency=medium
|
||||
|
||||
* Fixed bug: Unable to move Bode diagrams elements when having deleted the sum element.
|
||||
* Fixed bug: Names were not not being changed from previous object when editing a new one.
|
||||
* Fixed bug: Bode Magnitude was not drawn far enough
|
||||
* Fixed bug: Bode Magnitude had undefined ending.
|
||||
* Fixed other bugs from v0.1.1.
|
||||
|
||||
-- Ad5001 <mail@ad5001.eu> Mon, 30 Sep 2021 20:00:00 +0200
|
||||
|
||||
logarithmplotter (0.1.dev0) UNRELEASED; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Package: logarithmplotter
|
||||
Source: logarithmplotter
|
||||
Version: 0.1
|
||||
Version: 0.1.2
|
||||
Architecture: all
|
||||
Maintainer: Ad5001 <mail@ad5001.eu>
|
||||
Depends: python3, python3-pip, qml-module-qtquick-controls2 (>= 5.12.0), qml-module-qtmultimedia (>= 5.12.0), qml-module-qtgraphicaleffects (>= 5.12.0), qml-module-qtquick2 (>= 5.12.0), qml-module-qtqml-models2 (>= 5.12.0), qml-module-qtquick-controls (>= 5.12.0), python3-pyside2.qtcore (>= 5.12.0), python3-pyside2.qtqml (>= 5.12.0), python3-pyside2.qtgui (>= 5.12.0), python3-pyside2.qtquick (>= 5.12.0), python3-pyside2.qtwidgets (>= 5.12.0), python3-pyside2.qtmultimedia (>= 5.12.0), python3-pyside2.qtnetwork (>= 5.12.0)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: logarithmplotter
|
||||
title: LogarithmPlotter
|
||||
version: '0.1'
|
||||
version: '0.1.2'
|
||||
summary: 2D plotter software to make BODE plots, sequences and repartition functions.
|
||||
description: |
|
||||
LogarithmPlotter is, as it's name suggests, a plotter made with logarithm scales in mind. With an object system similar to [Geogebra](https://geogebra.org)'s, it allows dynamic creation of plots with very few limitations.
|
||||
|
|
Loading…
Reference in a new issue