Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
sectionproperties documentation
Light Logo Dark Logo
  • Installation
  • User Guide
    • Overview
    • Materials
    • Geometry
    • Meshing
    • Analysis
    • Results
    • Theory
    • Validation
  • Examples
    • Geometry from Coordinates
    • Section Library
    • Geometry Manipulation
    • Geometry from CAD
    • Advanced Geometry Creation
    • Creating Meshes
    • Assigning Materials
    • Composite Analysis
    • Geometric Analysis
    • Plastic Analysis
    • Warping Analysis
    • Frame Analysis
    • Stress Analysis
    • Display Results
    • Retrieving Section Properties
    • Plot Centroids
    • Plotting Stresses
    • Retrieving Stresses
    • Export to Fibre Section
    • Pilkey - Symmetric Channel Section
    • Pilkey - Circular Arc
    • Pilkey - Composite Rectangular Strip
    • Peery - Beams in Complex Bending
    • Advanced Plotting
    • Torsion Constant of a Rectangle
    • Torsion Constant of Trapezoidal Sections
  • API
    • sectionproperties.pre
      • sectionproperties.pre.bisect_section
        • create_line_segment
        • group_top_and_bottom_polys
        • line_mx_plus_b
      • sectionproperties.pre.geometry
        • buffer_polygon
        • build_geometry_network
        • check_geometry_disjoint
        • check_geometry_overlaps
        • compound_dilation
        • create_exterior_points
        • create_facets
        • create_interior_points
        • create_points_and_facets
        • extract_shared_paths
        • filter_non_polygons
        • load_dxf
        • round_polygon_vertices
        • CompoundGeometry
        • Geometry
      • sectionproperties.pre.library
        • sectionproperties.pre.library.bridge_sections
          • get_i_girder_dims
          • get_super_t_girder_dims
          • i_girder_section
          • super_t_girder_section
        • sectionproperties.pre.library.concrete_sections
          • add_bar
          • add_bars
          • cee_wall
          • concrete_circular_section
          • concrete_column_section
          • concrete_rectangular_section
          • concrete_tee_section
          • double_lift_core_a
          • double_lift_core_b
          • rectangular_wall
          • single_lift_core
          • stairwell
          • tee_wall
        • sectionproperties.pre.library.nastran_sections
          • nastran_bar
          • nastran_box
          • nastran_box1
          • nastran_chan
          • nastran_chan1
          • nastran_chan2
          • nastran_cross
          • nastran_dbox
          • nastran_fcross
          • nastran_gbox
          • nastran_h
          • nastran_hat
          • nastran_hat1
          • nastran_hexa
          • nastran_i
          • nastran_i1
          • nastran_l
          • nastran_rod
          • nastran_tee
          • nastran_tee1
          • nastran_tee2
          • nastran_tube
          • nastran_tube2
          • nastran_zed
        • sectionproperties.pre.library.primitive_sections
          • circular_section
          • circular_section_by_area
          • cruciform_section
          • elliptical_section
          • rectangular_section
          • triangular_radius_section
          • triangular_section
        • sectionproperties.pre.library.steel_sections
          • angle_section
          • box_girder_section
          • bulb_section
          • cee_section
          • channel_section
          • circular_hollow_section
          • elliptical_hollow_section
          • i_section
          • mono_i_section
          • polygon_hollow_section
          • rectangular_hollow_section
          • tapered_flange_channel
          • tapered_flange_i_section
          • tee_section
          • zed_section
        • sectionproperties.pre.library.timber_sections
          • clt_rectangular_section
        • sectionproperties.pre.library.utils
          • draw_radius
          • rotate
      • sectionproperties.pre.pre
        • create_mesh
        • Material
      • sectionproperties.pre.rhino
        • load_3dm
        • load_brep_encoding
    • sectionproperties.analysis
      • sectionproperties.analysis.fea
        • extrapolate_to_nodes
        • gauss_points
        • global_coordinate
        • njit
        • point_above_line
        • principal_coordinate
        • shape_function
        • shape_function_only
        • Tri6
      • sectionproperties.analysis.plastic_section
        • PlasticSection
      • sectionproperties.analysis.section
        • int_list
        • tri6_list
        • MaterialGroup
        • Section
      • sectionproperties.analysis.solver
        • create_progress
        • solve_cgs
        • solve_cgs_lagrange
        • solve_direct
        • solve_direct_lagrange
        • CustomTimeElapsedColumn
    • sectionproperties.post
      • sectionproperties.post.fibre
        • to_fibre_section
        • Cell
        • Cell2D
        • Cell3D
        • Cell3DOS
      • sectionproperties.post.post
        • draw_principal_axis
        • plotting_context
        • print_results
        • print_transformed_results
        • SectionProperties
      • sectionproperties.post.stress_post
        • StressPost
        • StressResult

Development

  • Contributor Guide
  • Code of Conduct
  • License
  • Changelog
Back to top
View this page
Edit this page

draw_principal_axis¶

sectionproperties.post.post.draw_principal_axis(ax: matplotlib.axes.Axes, phi: float, cx: float, cy: float) → None[source]¶

Draws the principal axis on a plot.

Parameters:
  • ax (matplotlib.axes.Axes) – Axes object on which to plot

  • phi (float) – Principal axis angle in radians

  • cx (float) – x-location of the centroid

  • cy (float) – y-location of the centroid

Next
plotting_context
Previous
sectionproperties.post.post
Copyright © 2025, Robbie van Leeuwen
Made with Sphinx and @pradyunsg's Furo
On this page
  • draw_principal_axis
    • draw_principal_axis()