Skip to content

Commit ebf8364

Browse files
committed
Use Matlab defaults for Bode plots
1 parent f48161b commit ebf8364

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

control/matlab/__init__.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,10 @@
5555
from numpy import linspace, logspace
5656

5757
# If configuration is not yet set, import and use MATLAB defaults
58-
#! NOTE (RMM, 4 Nov 2012): MATLAB default initialization commented out for now
59-
#!
60-
#! This code will eventually be used so that import control.matlab will
61-
#! automatically use MATLAB defaults, while import control will use package
62-
#! defaults. In order for that to work, we need to make sure that
63-
#! __init__.py does not include anything in the MATLAB module.
64-
# import sys
65-
# if not ('.config' in sys.modules):
66-
# from . import config
67-
# config.use_matlab()
58+
import sys
59+
if not ('.config' in sys.modules):
60+
from .. import config
61+
config.use_matlab_defaults()
6862

6963
# Control system library
7064
from ..statesp import *

0 commit comments

Comments
 (0)