Skip to content

Commit eeb34de

Browse files
fix(tutorials): fixed display methods after Makie integration
1 parent 49a38fc commit eeb34de

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/tutorial2.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,7 @@ cable_design = CableDesign(cable_id, core_cc, nominal_data = datasheet_info)
275275

276276
# At this point, it becomes possible to preview the cable design:
277277
plt1, _ = preview(cable_design)
278-
plt1
279-
280-
# test1
281-
renderfig(plt1) #hide
282-
# test2
283-
renderfig(plt1)
278+
plt1 #hide
284279

285280
#=
286281
### Wire screens
@@ -311,6 +306,7 @@ add!(cable_design, sheath_cc)
311306

312307
# Examine the newly added components:
313308
plt2, _ = preview(cable_design)
309+
plt2 #hide
314310

315311
#=
316312
### Outer jacket components
@@ -341,6 +337,7 @@ add!(cable_design, "jacket", jacket_con, jacket_insu)
341337

342338
# Inspect the finished cable design:
343339
plt3, _ = preview(cable_design)
340+
plt3 #hide
344341

345342
#=
346343
## Examining the cable parameters (RLC)
@@ -432,6 +429,7 @@ system_df = DataFrame(cable_system)
432429

433430
# Visualize the cross-section of the three-phase system:
434431
plt4, _ = preview(cable_system, earth_model = earth_params, zoom_factor = 2.0)
432+
plt4 #hide
435433

436434
#=
437435
## PSCAD & ATPDraw export

examples/tutorial3.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ armor_insu = InsulatorGroup(Insulator(armor_con, Thickness(t_jac), material))
204204
add!(cable_design, "armor", armor_con, armor_insu)
205205

206206
# Inspect the finished cable design:
207-
plt3, _ = preview(cable_design)
207+
plt1, _ = preview(cable_design)
208+
plt1 #hide
208209

209210
#=
210211
## Examining the cable parameters (RLC)
@@ -277,7 +278,8 @@ In this section the complete bipole cable system is examined.
277278
system_df = DataFrame(cable_system)
278279

279280
# Visualize the cross-section of the three-phase system:
280-
plt4, _ = preview(cable_system, earth_model = earth_params, zoom_factor = 2.0)
281+
plt2, _ = preview(cable_system, earth_model = earth_params, zoom_factor = 2.0)
282+
plt2 #hide
281283

282284
#=
283285
## PSCAD & ATPDraw export

0 commit comments

Comments
 (0)