×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

by: Ana Beyer

7

0

5

# Engr101 - Week 6 - Lecture 11: Plotting Part 2 Engr 101

Marketplace > University of Michigan > Engineering > Engr 101 > Engr101 Week 6 Lecture 11 Plotting Part 2
Ana Beyer
UM

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

These notes cover more things you can do with plots such as modifying the axes using the gca function and set function. We also covered an alternate way to modify using dot notation. Functions to c...
COURSE
Introduction to Computer Programming
PROF.
Laura Alford
TYPE
Class Notes
PAGES
5
WORDS
CONCEPTS
Engr101, Matlab, ComputerProgramming, gca, DotNotation, surf, Mesh, set
KARMA
25 ?

## Popular in Engineering

This 5 page Class Notes was uploaded by Ana Beyer on Thursday October 13, 2016. The Class Notes belongs to Engr 101 at University of Michigan taught by Laura Alford in Fall 2016. Since its upload, it has received 7 views. For similar materials see Introduction to Computer Programming in Engineering at University of Michigan.

×

## Reviews for Engr101 - Week 6 - Lecture 11: Plotting Part 2

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/13/16
Lecture 11- Plotting,Part 2 Thursday, October 13, 201612:07 PM set Function One wayto customize your axes • • set(variable name for gca, 'what you're modifying ', __) ○ Ex: set(ax, 'FontSize', 20) Customizing Your Axes: gca Function • "get current axes" • Store gca as a variable so it's easy to manipulate OR Dot Notation • Use variable name that you stored gca as + a dot + what you're changing • .FontSize = #fontsize • .YLim = [y1, y2] • .XLim = [x1, x2] • .XTick = [x1, x2] • .XTickLabel = {'name1', 'name2', 'name3'} • .YTick = [y1, y2] • .Xgrid or gca.Ygrid = 'on' Customizing Graphics Object Properties With Multiple Graphs Store your graph as a variable • Index into the variable that you stored the graph • in • graph.Marker = 'symbol' • For example, if you stored plot(….) in p, then • graph.LineWidth = # you can index into p with p(1) or p(2) etc and • graph.MarkerEdgeColor = 'color' use dot notation like before to customize what you want Box andWhisker Plots Lecture 11- Plotting,Part 2 Thursday, October 13, 201612:07 PM set Function One wayto customize your axes • • set(variable name for gca, 'what you're modifying ', __) ○ Ex: set(ax, 'FontSize', 20) Customizing Your Axes: gca Function • "get current axes" • Store gca as a variable so it's easy to manipulate OR Dot Notation • Use variable name that you stored gca as + a dot + what you're changing • .FontSize = #fontsize • .YLim = [y1, y2] • .XLim = [x1, x2] • .XTick = [x1, x2] • .XTickLabel = {'name1', 'name2', 'name3'} • .YTick = [y1, y2] • .Xgrid or gca.Ygrid = 'on' Customizing Graphics Object Properties With Multiple Graphs Store your graph as a variable • Index into the variable that you stored the graph • in • graph.Marker = 'symbol' • For example, if you stored plot(….) in p, then • graph.LineWidth = # you can index into p with p(1) or p(2) etc and • graph.MarkerEdgeColor = 'color' use dot notation like before to customize what you want Box andWhisker Plots Box andWhisker Plots • boxplot( ) function • Input is a matrix where each column corresponds to a different variable Plots with Error Bars 3D Surface Plots • errorbar( ) function • • Shows a plot with error bars at each data point ○ Error bars can be used to convey a range of values for each point or • uncertainty about a measured value • Format of input ○ Errorbar( 1st set of data, 2nd set of data, error associated w/ each pt) • • Box andWhisker Plots • boxplot( ) function • Input is a matrix where each column corresponds to a different variable Plots with Error Bars 3D Surface Plots • errorbar( ) function • • Shows a plot with error bars at each data point ○ Error bars can be used to convey a range of values for each point or • uncertainty about a measured value • Format of input ○ Errorbar( 1st set of data, 2nd set of data, error associated w/ each pt) • • •

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Kyle Maynard Purdue

#### "When you're taking detailed notes and trying to help everyone else out in the class, it really helps you learn and understand the material...plus I made \$280 on my first study guide!"

Jim McGreen Ohio University

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com