Skip to content

Commit 388cc3d

Browse files
committed
Change @usingModiaPlot -> @usingPlotPackage
1 parent 2d6d5f8 commit 388cc3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+57
-57
lines changed

docs/src/tutorial/CollisionHandling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BouncingSphere = Model3D(
3131
bouncingSphere = @instantiateModel(BouncingSphere, unitless=true)
3232
simulate!(bouncingSphere, stopTime=2.2, dtmax=0.1)
3333
34-
@usingModiaPlot
34+
@usingPlotPackage
3535
plot(bouncingSphere, "sphere.translation", figure=1)
3636
3737
end

docs/src/tutorial/GettingStarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Pendulum = Model3D(
2525
pendulum = @instantiateModel(Pendulum, unitless=true)
2626
simulate!(pendulum, stopTime=3.0)
2727

28-
@usingModiaPlot # use the plot package defined by ENV["MODIA_PLOT"]
28+
@usingPlotPackage # use the plot package defined by ENV["MODIA_PLOT"]
2929
plot(pendulum, "rev.phi")
3030

3131
end
@@ -66,7 +66,7 @@ Pendulum = Model3D(
6666
pendulum = @instantiateModel(Pendulum, unitless=true)
6767
simulate!(pendulum, stopTime=3.0)
6868

69-
@usingModiaPlot
69+
@usingPlotPackage
7070
plot(pendulum, "rev.phi")
7171

7272
end
@@ -114,7 +114,7 @@ Pendulum = Model3D(
114114
pendulum = @instantiateModel(Pendulum, unitless=true)
115115
simulate!(pendulum, stopTime=3.0)
116116

117-
@usingModiaPlot
117+
@usingPlotPackage
118118
plot(pendulum, "rev.phi")
119119

120120
end

test/Basic/BouncingSphere3D.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ requiredFinalStates = [-1.1158498420134682e-7, 0.09999999283736953, 1.9605796328
2626
simulate!(bouncingSphere, stopTime=2.2, dtmax=0.1, log=true, logStates=true, requiredFinalStates=requiredFinalStates)
2727
showInfo(bouncingSphere)
2828

29-
@usingModiaPlot
29+
@usingPlotPackage
3030
plot(bouncingSphere, ["sphere.translation", "sphere.velocity", "sphere.rotationXYZ"], figure=1)
3131

3232
end

test/Basic/BoxPlanarMotion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ stopTime = 4.0
2222
requiredFinalStates = [1.0, 3.0, -2.0, -1.0, 3.0, 12.0]
2323
simulate!(model, stopTime=stopTime, log=true, logStates=true, requiredFinalStates=requiredFinalStates)
2424

25-
@usingModiaPlot
25+
@usingPlotPackage
2626
plot(model, ["prismatic_x.s", "prismatic_y.s", "revolute_z.phi"], figure=1)
2727

2828
end

test/Basic/DoublePendulumWithDampers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tolerance = 1.0e-8
5050
requiredFinalStates = [-0.9608496178685947, 1.0258202272580021, -6.0828664801544345, -0.11676963250128454]
5151
simulate!(doublePendulum, stopTime=stopTime, tolerance=tolerance, log=true, logStates=false, requiredFinalStates=requiredFinalStates)
5252

53-
@usingModiaPlot
53+
@usingPlotPackage
5454
plot(doublePendulum, [("rev1.phi", "rev2.phi"), ("rev1.w", "rev2.w")])
5555

5656
end

test/Basic/FreeShaft.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ stopTime = 5.0
3131
requiredFinalStates=[0.0, 0.5, -0.75, 0.0, 0.1, -0.9, 12.518049845080435, -0.901864379852841, 13.979844149553378, -1.556318674959713, 1.9667313208626755, 2.776623306112369]
3232
simulate!(shaft, stopTime=stopTime, log=true, logStates=false, requiredFinalStates=requiredFinalStates)
3333

34-
@usingModiaPlot
34+
@usingPlotPackage
3535
plot(shaft, ["shaft.shaft.translation", "shaft.shaft.rotation", "shaft.shaft.velocity", "shaft.shaft.angularVelocity"], figure=1)
3636

3737
end

test/Basic/FreeShaftAdaptiveRotSequence.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ requiredFinalStates = [0.0, 0.7, -7.350074420637136, 0.0, 0.1, -2.1, 0.698131700
3030
simulate!(shaft, stopTime=stopTime, dtmax=dtmax, log=true, logEvents=true, logStates=false, requiredFinalStates=requiredFinalStates)
3131
showInfo(shaft)
3232

33-
@usingModiaPlot
33+
@usingPlotPackage
3434
plot(shaft, ["shaft.rotation", "shaft.rotationXYZ", "shaft.angularVelocity", "shaft.translation", "shaft.velocity"], figure=1)
3535

3636
end

test/Basic/FreeShaftAdaptiveRotSequenceWithFreeMotion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dtmax = 0.1
2929
requiredFinalStates = [0.0, 0.7, -7.350074420637136, 0.0, 0.1, -2.1, 0.6981317007977381, 1.4336293856408397, 1.5707963267949017, -2.0, 0.0, 0.0]
3030
simulate!(shaft, stopTime=stopTime, dtmax=dtmax, log=true, logEvents=false, logStates=false, requiredFinalStates=requiredFinalStates)
3131

32-
@usingModiaPlot
32+
@usingPlotPackage
3333
plot(shaft, ["free.rot", "free.isrot123", "free.w", "free.r", "free.v"], figure=1)
3434

3535
end

test/Basic/Mobile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ tolerance = 1e-5
101101
requiredFinalStates = [-0.009569246139092647, 0.06206606324720822, 0.0010219666026627296, 0.024678616817829752, 0.004218575209138456, 0.028468399940849164, -0.009906941842068384, 0.04296850265297842, 0.0007318009858593783, 0.02017149964438393, 0.003687261686657736, 0.023502975932150394, -0.0448394459612976, 0.026723967721919494, 0.0537435564833799, 0.12331025494664288, 0.05248795026088127, 0.11675479912295675, -0.009264844274058073, 0.06728855030873694, 0.0011992360615969712, 0.025406524349364322, 0.004501037229020791, 0.02917639504873484, -0.00965181608855167, 0.0477780102217653, 0.0008958989126344595, 0.020867265917878713, 0.003946827273570862, 0.024201038339941326, -0.04462421281684384, 0.03746102813853381, 0.05486746017952349, 0.11577048656288175, 0.05363002444778805, 0.11033674247191452, -0.02865814302511715, -0.46249723347164023, 0.02588030023351807, 0.562896850566723, 0.02821667734365895, 0.5623903988440904, -0.009403295780267986, 0.06162802647976917, 0.0010701734591814242, 0.024348108279934208, 0.004222449370467353, 0.028064091478322103, -0.00978017118379629, 0.042937738418303645, 0.0007712669619712274, 0.02000389926557959, 0.0036870480729875752, 0.02329559286742148, -0.04450699270608273, 0.027584416181856048, 0.053512955516200826, 0.1203910664037745, 0.052242780723209266, 0.1148698118645492, -0.00908973848103805, 0.06683238262833087, 0.0012488875262191405, 0.025054556524096706, 0.004506535939791427, 0.02874309504494291, -0.009516262851887764, 0.047741100768557164, 0.0009367831965132963, 0.0206820605278372, 0.003948288304262993, 0.02396953329142854, -0.0442740599719771, 0.03835719168973073, 0.054628209624966825, 0.1126450558374131, 0.053378321393267744, 0.10825519520092068, -0.029248882022186243, -0.45868389528398645, 0.02661598555301995, 0.5585200081021191, 0.02895380855666197, 0.5578643900507765, 0.11057838176009542, -0.4328898557101326, -0.1137607979103064, 0.5023169087131035, -0.11293209024062373, 0.49924136851309536, -0.00949264483432839, 0.06269840391598419, 0.0010594569792564434, 0.024662133036232943, 0.004286395100088604, 0.02844710490443639, -0.009858798739817745, 0.04356190104934767, 0.0007615897059759054, 0.020185339490969664, 0.0037442343747962708, 0.023525248558572666, -0.04490190529834802, 0.02861187090459901, 0.054093472471048135, 0.12121222952180354, 0.05282381817075915, 0.11524012664035016, -0.00918252751200148, 0.06794970842859763, 0.0012381041193024645, 0.02538680700446271, 0.004571342380041327, 0.029148124149157, -0.009598363758120855, 0.048403550630416084, 0.0009271317194699239, 0.020879696023068203, 0.00400620925514733, 0.02421928779134631, -0.044678930789653376, 0.039416625110429974, 0.05521797625599808, 0.11354470175688848, 0.05396904771937769, 0.1087130515149207, -0.029386149298980365, -0.4625396185956002, 0.026768483822850988, 0.5631828688184961, 0.02911172224703885, 0.5626015954247693, -0.009324704028879006, 0.062258112033935976, 0.0011079870888003323, 0.024328333168236824, 0.004290387257149793, 0.028037530012991814, -0.009730064979351052, 0.043535748038149275, 0.0008014306498257068, 0.02001640392846844, 0.0037442737008724775, 0.023314890388120756, -0.04456469081149338, 0.0294911482051167, 0.05385917279095154, 0.11825295160221237, 0.052576102903529355, 0.11332114444600068, -0.00900535540075688, 0.0674898715499478, 0.0012880524022445207, 0.02503113089861741, 0.0045769255979494095, 0.02870901282603822, -0.009460770397544161, 0.04837019570880829, 0.0009683769175080957, 0.020692819349648818, 0.004007904268091745, 0.023984347424616213, -0.04432382727176435, 0.04033007578307317, 0.054974659993453495, 0.11037837031847329, 0.05371447828202559, 0.10659649333068186, -0.029979463641433897, -0.4586694882625391, 0.027508572008452217, 0.5587394516064685, 0.02985302711571344, 0.5580073793505101, 0.10994893558074191, -0.43345695851264765, -0.113030926843198, 0.5031313427136914, -0.11219753434123993, 0.5000032205945514, 0.17883870418449752, -0.3672711553933069, -0.17900124607493148, 0.423658663329383, -0.17837270297492822, 0.424290817579418, 0.011456378191880315, 0.3654620146635912]
102102
simulate!(mobile, stopTime=stopTime, tolerance=tolerance, log=true, useRecursiveFactorizationUptoSize = 500, requiredFinalStates=requiredFinalStates)
103103

104-
@usingModiaPlot
104+
@usingPlotPackage
105105
plot(mobile, "rev0.rev.phi")
106106

107107
end

test/Basic/Object3DWithoutParentError.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ stopTime = 10.0
5151
requiredFinalStates = [-1.5781788131493184, 0.06153205563040136]
5252
simulate!(pendulumWithBar, stopTime=stopTime, requiredFinalStates=requiredFinalStates)
5353

54-
@usingModiaPlot
54+
@usingPlotPackage
5555
plot(pendulumWithBar, "pendulum.rev.flange.phi", figure=1)
5656

5757
end

0 commit comments

Comments
 (0)