Skip to main content

Mechanical scripting interface 2026 R1

`LegendPosition`

Last update: 09.03.2026

class Ansys.Mechanical.DataModel.MechanicalEnums.Charts.LegendPosition(*args, **kwds)

Bases: enum.Enum

An enum that allows users to control the position of legend being shown on the chart.

Overview

Attributes

Name
ProgramControlled
Right
Top

Attribute detail

LegendPosition.ProgramControlled = 1

LegendPosition.Right = 3

LegendPosition.Top = 2

Connect with Ansys